summaryrefslogtreecommitdiff
path: root/src/config.h.in
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-15 19:54:01 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-16 21:31:56 +0100
commit76b7e4241c840480beaef5ac6b711301f066251e (patch)
tree04df5b2c9c0281db3c96ae44945e807d42d66bec /src/config.h.in
parent4dcdc715910b61a2b58f1ea8ae5f86d041e3c229 (diff)
Probe for stdbool.h
Let cmake create a cmark_config.h file to deal with platforms missing stdbool.h.
Diffstat (limited to 'src/config.h.in')
-rw-r--r--src/config.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config.h.in b/src/config.h.in
new file mode 100644
index 0000000..2165d03
--- /dev/null
+++ b/src/config.h.in
@@ -0,0 +1,8 @@
+#cmakedefine HAVE_STDBOOL_H
+
+#ifdef HAVE_STDBOOL_H
+ #include <stdbool.h>
+#elif !defined(__cplusplus)
+ typedef char bool;
+#endif
+