diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-15 19:54:01 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 21:31:56 +0100 |
commit | 76b7e4241c840480beaef5ac6b711301f066251e (patch) | |
tree | 04df5b2c9c0281db3c96ae44945e807d42d66bec /src/config.h.in | |
parent | 4dcdc715910b61a2b58f1ea8ae5f86d041e3c229 (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.in | 8 |
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 + |