summaryrefslogtreecommitdiff
path: root/lib/make/cctk_Config.h.in
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-07-18 15:02:56 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-07-18 15:02:56 +0000
commit2cf31e125b0d67a53ed6d7dd35aac87173d645d7 (patch)
treeb602d4c69593a1be12027503100bc2bef7bec639 /lib/make/cctk_Config.h.in
parent2e0865147ac4379c3ec4d3f477cfd599fe41703f (diff)
Detect if the C++ compiler defines bool, if not, do a typedef.
This is needed, for example, for xlC. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1758 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/cctk_Config.h.in')
-rw-r--r--lib/make/cctk_Config.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/make/cctk_Config.h.in b/lib/make/cctk_Config.h.in
index afd8de72..db761d24 100644
--- a/lib/make/cctk_Config.h.in
+++ b/lib/make/cctk_Config.h.in
@@ -141,6 +141,18 @@
/* Define the type of a 4 byte float */
#undef CCTK_REAL4
+#ifdef __cplusplus
+
+/* Some C++ compilers don't have bool ! */
+#undef HAVE_BOOL
+
+#ifndef HAVE_BOOL
+typedef enum {false, true} bool;
+#endif /* HAVE_BOOL */
+
+#endif /* __cplusplus */
+
+
#endif /*CCODE */
#ifdef FCODE