diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-15 13:51:21 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-08-15 13:51:21 (GMT) |
commit | 87c13803324a5d70c0477ab5001afaa98c0cf893 (patch) | |
tree | e86275675b2923b5745266c49a2cb0948a7d71a6 /win/configure.in | |
parent | 2746a35d16e61c010e14cf1d1622479b92478d8d (diff) | |
parent | 64cc29ed6aab1896476c91f4117507564db8beab (diff) | |
download | tcl-87c13803324a5d70c0477ab5001afaa98c0cf893.zip tcl-87c13803324a5d70c0477ab5001afaa98c0cf893.tar.gz tcl-87c13803324a5d70c0477ab5001afaa98c0cf893.tar.bz2 |
mingw64 compiler warnings. Reverse the detection of struct _stat32i64,
otherwise when mingw doesn't have it, tclTest.c cannot be compiled
Diffstat (limited to 'win/configure.in')
-rw-r--r-- | win/configure.in | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/win/configure.in b/win/configure.in index ca5ef9c..791d96a 100644 --- a/win/configure.in +++ b/win/configure.in @@ -243,7 +243,7 @@ fi # Check to see if struct _stat32i64 exists in mingw's sys/stat.h -AC_CACHE_CHECK(struct _stat32i64, +AC_CACHE_CHECK(if struct _stat32i64 missing, tcl_struct_stat32i64, AC_TRY_COMPILE([ #include <sys/types.h> @@ -252,12 +252,12 @@ AC_TRY_COMPILE([ [ struct _stat32i64 foo; ], - tcl_struct_stat32i64=yes, - tcl_struct_stat32i64=no) + tcl_struct_stat32i64=no, + tcl_struct_stat32i64=yes) ) if test "$tcl_struct_stat32i64" = "yes" ; then - AC_DEFINE(HAVE_STRUCT_STAT32I64, 1, - [Defined when sys/stat.h has struct_stat32i64]) + AC_DEFINE(HAVE_NO_STRUCT_STAT32I64, 1, + [Defined when sys/stat.h is missing struct _stat32i64]) fi @@ -345,7 +345,7 @@ AC_CHECK_TYPE([intptr_t], [ for tcl_cv_intptr_t in "int" "long" "long long" none; do if test "$tcl_cv_intptr_t" != none; then AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([AC_INCLUDES_DEFAULT], - [[sizeof (void *) <= sizeof ($tcl_cv_intptr_t)]])], + [[sizeof (void *) <= sizeof ($tcl_cv_intptr_t)]])], [tcl_ok=yes], [tcl_ok=no]) test "$tcl_ok" = yes && break; fi done]) @@ -361,7 +361,7 @@ AC_CHECK_TYPE([uintptr_t], [ none; do if test "$tcl_cv_uintptr_t" != none; then AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([AC_INCLUDES_DEFAULT], - [[sizeof (void *) <= sizeof ($tcl_cv_uintptr_t)]])], + [[sizeof (void *) <= sizeof ($tcl_cv_uintptr_t)]])], [tcl_ok=yes], [tcl_ok=no]) test "$tcl_ok" = yes && break; fi done]) |