From 68024f1b0bc46b57e87430a961bb6d3adf8ef5c4 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 13 Nov 2017 21:37:00 +0100 Subject: [PATCH] Added desktop platform check... ...to define proper values --- src/rglfw.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/rglfw.c b/src/rglfw.c index 81949a3d1..1a3e587f2 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"