summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 17c4234e..20a3ca26 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -354,11 +354,11 @@
//----------------------------------------------------------------------------------
// Structures Definition
//----------------------------------------------------------------------------------
-#ifndef __cplusplus
// Boolean type
- #ifndef bool
- typedef enum { false, true } bool;
- #endif
+#if defined(__STDC__) && __STDC_VERSION__ >= 199901L
+ #include <stdbool.h>
+#elif !defined(__cplusplus) && !defined(bool)
+ typedef enum { false, true } bool;
#endif
// Vector2 type