]> granicus.if.org Git - graphviz/commitdiff
the configure test for bool tested only the CC compiler, but we already know that...
authorellson <devnull@localhost>
Sat, 28 Jan 2006 00:20:45 +0000 (00:20 +0000)
committerellson <devnull@localhost>
Sat, 28 Jan 2006 00:20:45 +0000 (00:20 +0000)
lib/common/logic.h

index dd08c8a9edb922ecf7704f4c37f8c5a4750f4791..14549b953179f9cfa0aae2493b4c062b4c0839d6 100644 (file)
 extern "C" {
 #endif
 
-#ifdef HAVE_STDBOOL_H
+#if defined HAVE_STDBOOL_H && ! defined __cplusplus
 #include <stdbool.h>
 #endif
 
 #define NOT(v) (!(v))
 
-#ifndef HAVE_BOOL
+/* 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)