Skip to content

Commit f23040f

Browse files
committed
Fix: Don't try to redefine bool on C99 and higher
1 parent 1ff7b0b commit f23040f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extract-xiso.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@
369369
#endif
370370

371371

372-
#if ! defined( __cplusplus ) && ! defined( bool )
372+
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
373+
#include <stdbool.h>
374+
#elif ! defined( __cplusplus ) && ! defined( bool )
373375
typedef int bool;
374376
enum { false, true };
375377
#endif

0 commit comments

Comments
 (0)