summaryrefslogtreecommitdiff
path: root/src/include/stdbool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/stdbool.h')
-rw-r--r--src/include/stdbool.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/stdbool.h b/src/include/stdbool.h
index 3733527bd2..bfb997a1fa 100644
--- a/src/include/stdbool.h
+++ b/src/include/stdbool.h
@@ -3,8 +3,10 @@
#ifndef __STDBOOL_H__
#define __STDBOOL_H__
+#if __STDC_VERSION__ <= 201710L
typedef _Bool bool;
-#define true 1
-#define false 0
+#define true 1
+#define false 0
+#endif
#endif /* __STDBOOL_H__ */