Skip to content

Commit 0faaa89

Browse files
use C standard version to guard stdbool.h
Co-authored-by: Saleem Abdulrasool <[email protected]>
1 parent 7b026d1 commit 0faaa89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
extern "C" {
66
#endif
77

8-
#if __has_include(<stdbool.h>)
8+
#if __STDC_VERSION__ >= 199901l
99
#include <stdbool.h>
1010
#elif !defined(__cplusplus)
1111
typedef char bool;

src/include/cmark-gfm_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
extern "C" {
1010
#endif
1111

12-
#if __has_include(<stdbool.h>)
12+
#if __STDC_VERSION__ >= 199901l
1313
#include <stdbool.h>
1414
#elif !defined(__cplusplus)
1515
typedef char bool;

0 commit comments

Comments
 (0)