]> granicus.if.org Git - graphviz/commitdiff
Remove define and usage of HAVE_BOOL
authorErwin Janssen <erwinjanssen@outlook.com>
Sun, 18 Sep 2016 15:50:06 +0000 (17:50 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Sun, 18 Sep 2016 15:50:06 +0000 (17:50 +0200)
This define was only used twice. Once surrounded by a `#if 0` and once
only if HAVE_STDBOOL_H wasn't defined (HAVE_STDBOOL_H is part of the C99
standard library and is always defined).

config.iffe
configure.ac
contrib/diffimg/diffimg.c
lib/common/logic.h
windows/include/config.h

index be5be11f96b74d97b6c3e0cb8c3980142ab1f094..e735e4470d7305fa5c933972ed65ac8d9cea7f89 100644 (file)
@@ -99,16 +99,6 @@ link{
 #define HAVE_INTPTR_T 1
 }end
 
-compile{
-    #ifdef HAVE_STDBOOL_H
-    #include <stdbool.h>
-    #endif
-    bool xx = true, yy = false; 
-}end yes{
-/* Define to 1 if compiler supports bool */
-#define HAVE_BOOL 1
-}end
-
 compile{
     #include <iconv.h>
     iconv_t xx; 
index 8cde55a28be383a49fa7287f8171b2b07b0f2696..53a8bd11aae6e67800dc04e47531219fa11e0ab2 100644 (file)
@@ -438,21 +438,6 @@ AC_HEADER_STDBOOL
 # Internationalization macros
 # AM_GNU_GETTEXT
 
-# -----------------------------------
-# Test if compiler supports bool
-AC_MSG_CHECKING([for bool])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-    #ifdef HAVE_STDBOOL_H>
-    #include <stdbool.h>
-    #endif
-    ]], [[
-    bool foo==true, bar=false;
-    ]])],[
-AC_MSG_RESULT(yes)
-AC_DEFINE(HAVE_BOOL, 1,[Define to 1 if compiler supports bool])
-    ],[
-AC_MSG_RESULT(no)])
-
 # -----------------------------------
 # Test for direct I/O
 AC_MSG_CHECKING([for struct dioattr])
index 8fb04e4b0179743f879c75626e41d38f29e547de..90041dc6d39a35c1845a9f57646928d193a36984 100644 (file)
@@ -59,9 +59,6 @@
 #endif
 
 #define NOT(v) (!(v))
-#if ! defined HAVE_BOOL && ! defined HAVE_STDBOOL_H && ! defined __cplusplus
-typedef unsigned char bool;
-#endif
 #ifndef false
 #define false 0
 #define true NOT(false)
index 224c276ff568b1662f30b108e71e41a61faefda8..ea939986bb6e5c3de18d530b997864c3d9a20671 100644 (file)
@@ -26,15 +26,6 @@ extern "C" {
 #define NOT(v) (!(v))
 #endif
 
-#if 0
-/* HAVE_BOOL only tested the CC compiler, we know C++ must define bool */
-#if ! defined HAVE_BOOL && ! defined __cplusplus
-typedef unsigned char bool;
-#define false 0
-#define true NOT(false)
-#endif
-#endif
-
 #ifndef FALSE
 #define        FALSE (0)
 #endif
index c69f0b21eca233bd6bef943959da9e0295c6e800..96ba033d8d299a82d2d6080b83ce5ff47f83127f 100644 (file)
@@ -44,9 +44,6 @@
 /* Define if you have the ann library */
 #define HAVE_ANN 1
 
-/* Define to 1 if compiler supports bool */
-#define HAVE_BOOL 1
-
 /* Define to 1 if you have the `cbrt' function. */
 //#define HAVE_CBRT 1