summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2018-10-07 09:16:54 +0200
committerGitHub <[email protected]>2018-10-07 09:16:54 +0200
commit93f68fa61205c2d06ce9006eec0569133cd515ba (patch)
treea44a000c30e9942048f4f63518e8d222376f64b7 /src/raylib.h
parent35ee4fa685c2430ef65a323d1f24f148fa81e44f (diff)
parent1fe6d9fc06156257d5210cfa71ecb839fb190722 (diff)
downloadraylib-93f68fa61205c2d06ce9006eec0569133cd515ba.tar.gz
raylib-93f68fa61205c2d06ce9006eec0569133cd515ba.zip
Merge pull request #655 from a3f/master
core: workaround window not being rendered till moved on macOS Mojave
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