Conftest source is:
/* confdefs.h */
#define _GNU_SOURCE 1
#define _NETBSD_SOURCE 1
#define __BSD_VISIBLE 1
#define _BSD_TYPES 1
#define _DARWIN_C_SOURCE 1
#define _XOPEN_SOURCE 600
#define _XOPEN_SOURCE_EXTENDED 1
#define _POSIX_C_SOURCE 200112L
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define Py_ENABLE_SHARED 1
#define STDC_HEADERS 1
#define HAVE_CONIO_H 1
#define HAVE_CURSES_H 1
#define HAVE_DIRECT_H 1
#define HAVE_ERRNO_H 1
#define HAVE_FCNTL_H 1
#define HAVE_IO_H 1
#define HAVE_NCURSES_H 1
#define HAVE_PROCESS_H 1
#define HAVE_SIGNAL_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UTIME_H 1
#define HAVE_SYS_FILE_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_WINSOCK2_H 1
#define HAVE_DIRENT_H 1
#if defined(SCO_DS)
#undef _OFF_T
#endif
#define RETSIGTYPE void
#define uid_t int
#define gid_t int
#define HAVE_SSIZE_T 1
#define SIZEOF_INT 4
#define SIZEOF_LONG 4
#define SIZEOF_VOID_P 8
#define SIZEOF_SHORT 2
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
#define SIZEOF_FPOS_T 8
#define SIZEOF_SIZE_T 8
#define SIZEOF_PID_T 8
#define HAVE_LONG_LONG 1
#define SIZEOF_LONG_LONG 8
#define HAVE_LONG_DOUBLE 1
#define SIZEOF_LONG_DOUBLE 16
#define HAVE_C99_BOOL 1
#define SIZEOF__BOOL 1
#define HAVE_UINTPTR_T 1
#define SIZEOF_UINTPTR_T 8
#define SIZEOF_OFF_T 4
#define SIZEOF_TIME_T 8
#define SIZEOF_PTHREAD_T 0
#define SHLIB_EXT ".pyd"
#define WITH_SYSTEM_LIBFFI 1
#define WITH_THREAD 1
#define NT_THREADS 1
#define WITH_DOC_STRINGS 1
#define WITH_PYMALLOC 1
#define HAVE_DYNAMIC_LOADING 1
#define HAVE_ALARM 1
#define HAVE_CLOCK 1
#define HAVE_EXECV 1
#define HAVE_FTIME 1
#define HAVE_FTRUNCATE 1
#define HAVE_GETLOGIN 1
#define HAVE_GETPID 1
#define HAVE_MKTIME 1
#define HAVE_PUTENV 1
#define HAVE_SEM_OPEN 1
#define HAVE_SEM_TIMEDWAIT 1
#define HAVE_SEM_GETVALUE 1
#define HAVE_SEM_UNLINK 1
#define HAVE_SETLOCALE 1
#define HAVE_SETVBUF 1
#define HAVE_SNPRINTF 1
#define HAVE_SETLOCALE 1
#define HAVE_SETVBUF 1
#define HAVE_SNPRINTF 1
#define HAVE_STRFTIME 1
#define HAVE_TEMPNAM 1
#define HAVE_TMPFILE 1
#define HAVE_TMPNAM 1
#define HAVE_TRUNCATE 1
#define HAVE_WCSCOLL 1
#define HAVE_ZLIB_COPY 1
#define HAVE_MEMMOVE 1
#define HAVE_FSEEKO 1
#define HAVE_FTELLO 1
#define HAVE_DUP2 1
#define HAVE_GETCWD 1
#define HAVE_STRDUP 1
#define HAVE_GETTIMEOFDAY 1
#define TIME_WITH_SYS_TIME 1
#define HAVE_DECL_TZNAME 1
#define HAVE_TZNAME 1
#define HAVE_STRUCT_STAT_ST_RDEV 1
#define HAVE_ADDRINFO 1
#define HAVE_SOCKADDR_STORAGE 1
#define HAVE_PROTOTYPES 1
#define HAVE_STDARG_PROTOTYPES 1
#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
#define HAVE_GCC_ASM_FOR_X87 1
#define HAVE_ACOSH 1
#define HAVE_ASINH 1
#define HAVE_ATANH 1
#define HAVE_COPYSIGN 1
#define HAVE_ERF 1
#define HAVE_ERFC 1
#define HAVE_EXPM1 1
#define HAVE_FINITE 1
#define HAVE_HYPOT 1
#define HAVE_LGAMMA 1
#define HAVE_LOG1P 1
#define HAVE_ROUND 1
#define HAVE_TGAMMA 1
#define HAVE_DECL_ISINF 1
#define HAVE_DECL_ISNAN 1
#define HAVE_DECL_ISFINITE 1
#define POSIX_SEMAPHORES_NOT_ENABLED 1
#define HAVE_WCHAR_H 1
#define SIZEOF_WCHAR_T 2
#define Py_UNICODE_SIZE 2
#define Py_USING_UNICODE 1
#define HAVE_USABLE_WCHAR_T 1
#define PY_UNICODE_TYPE wchar_t
#define HAVE_LIBREADLINE 1
#define HAVE_RL_CALLBACK 1
#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
#define HAVE_RL_PRE_INPUT_HOOK 1
#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
#define HAVE_RL_COMPLETION_MATCHES 1
#define HAVE_RL_CATCH_SIGNAL 1
#define HAVE_DECL_TZNAME 1
#define HAVE_TZNAME 1
/* end confdefs.h. */
#include <stdlib.h>
#include <time.h>
#include <string.h>
#if HAVE_TZNAME
extern char *tzname[];
#endif
int main()
{
/* Note that we need to ensure that not only does tzset(3)
do 'something' with localtime, but it works as documented
in the library reference and as expected by the test suite.
This includes making sure that tzname is set properly if
tm->tm_zone does not exist since it is the alternative way
of getting timezone info.
Red Hat 6.2 doesn't understand the southern hemisphere
after New Year's Day.
*/
time_t groundhogday = 1044144000; /* GMT-based */
time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
putenv("TZ=UTC+0");
tzset();
if (localtime(&groundhogday)->tm_hour != 0)
exit(1);
#if HAVE_TZNAME
/* For UTC, tzname[1] is sometimes "", sometimes " " */
if (strcmp(tzname[0], "UTC") ||
(tzname[1][0] != 0 && tzname[1][0] != ' '))
exit(1);
#endif
putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
tzset();
if (localtime(&groundhogday)->tm_hour != 19)
exit(1);
#if HAVE_TZNAME
if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
exit(1);
#endif
putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
tzset();
if (localtime(&groundhogday)->tm_hour != 11)
exit(1);
#if HAVE_TZNAME
if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
exit(1);
#endif
#if HAVE_STRUCT_TM_TM_ZONE
if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
exit(1);
if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
exit(1);
#endif
exit(0);
}
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public