summaryrefslogtreecommitdiffhomepage
path: root/src/rglfw.c
diff options
context:
space:
mode:
authorRay <[email protected]>2017-11-13 21:37:00 +0100
committerRay <[email protected]>2017-11-13 21:37:00 +0100
commit68024f1b0bc46b57e87430a961bb6d3adf8ef5c4 (patch)
treefa975683dc43e9b998749472c578c18f9a1dbe77 /src/rglfw.c
parent9c65caea8cef4d334ef71fc18e1ea4d77fd59187 (diff)
downloadraylib-68024f1b0bc46b57e87430a961bb6d3adf8ef5c4.tar.gz
raylib-68024f1b0bc46b57e87430a961bb6d3adf8ef5c4.zip
Added desktop platform check...
...to define proper values
Diffstat (limited to 'src/rglfw.c')
-rw-r--r--src/rglfw.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rglfw.c b/src/rglfw.c
index 81949a3d..1a3e587f 100644
--- a/src/rglfw.c
+++ b/src/rglfw.c
@@ -26,6 +26,19 @@
*
**********************************************************************************************/
+#ifdef _WIN32
+ #define _GLFW_WIN32
+#endif
+#ifdef __linux__
+ #define _GLFW_X11
+#endif
+#ifdef __APPLE__
+ #define _GLFW_COCOA
+ #define _GLFW_USE_CHDIR
+ #define _GLFW_USE_MENUBAR
+ #define _GLFW_USE_RETINA
+#endif
+
#include "external/glfw/src/context.c"
#include "external/glfw/src/init.c"
#include "external/glfw/src/input.c"