diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-31 08:51:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-31 08:51:58 (GMT) |
commit | d9676d4c9d5c419d507bcc44981758a405ee3aa1 (patch) | |
tree | 5f30130b95a48631202fb31a0f88c04d96543b93 /win | |
parent | 2aa1aaba6fa81c640f8a8f8b58f78b57edd7dcb3 (diff) | |
download | tk-d9676d4c9d5c419d507bcc44981758a405ee3aa1.zip tk-d9676d4c9d5c419d507bcc44981758a405ee3aa1.tar.gz tk-d9676d4c9d5c419d507bcc44981758a405ee3aa1.tar.bz2 |
Add test for <stdbool.h> in configure script. Not used by Tk yet.
Diffstat (limited to 'win')
-rwxr-xr-x | win/configure | 9 | ||||
-rw-r--r-- | win/makefile.vc | 2 | ||||
-rw-r--r-- | win/tcl.m4 | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/win/configure b/win/configure index 7e63a81..3bb8570 100755 --- a/win/configure +++ b/win/configure @@ -4664,6 +4664,15 @@ $as_echo "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h fi + ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default" +if test "x$ac_cv_header_stdbool_h" = xyes; then : + +$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + + + # See if the compiler supports casting to a union type. # This is used to stop gcc from printing a compiler # warning when initializing a union member. diff --git a/win/makefile.vc b/win/makefile.vc index 99aa6c1..311be18 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -316,7 +316,7 @@ PRJ_INCLUDES = -I"$(BITMAPDIR)" -I"$(XLIBDIR)" CONFIG_DEFS =/DSTDC_HEADERS=1 /DHAVE_SYS_TYPES_H=1 /DHAVE_SYS_STAT_H=1 \
/DHAVE_STRING_H=1 /DHAVE_MEMORY_H=1 \
- /DHAVE_STRINGS_H=1 /DHAVE_INTTYPES_H=1 /DHAVE_STDINT_H=1 \
+ /DHAVE_STRINGS_H=1 /DHAVE_INTTYPES_H=1 \
/DSUPPORT_CONFIG_EMBEDDED /DUNICODE /D_UNICODE \
!if $(HAVE_UXTHEME_H)
/DHAVE_UXTHEME_H=1 \
@@ -948,6 +948,8 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ [Defined when cygwin/mingw ignores VOID define in winnt.h]) fi + AC_CHECK_HEADER(stdbool.h, [AC_DEFINE(HAVE_STDBOOL_H, 1, [Do we have <stdbool.h>?])],) + # See if the compiler supports casting to a union type. # This is used to stop gcc from printing a compiler # warning when initializing a union member. |