summaryrefslogtreecommitdiffhomepage
path: root/src/rglfw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rglfw.c')
-rw-r--r--src/rglfw.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/rglfw.c b/src/rglfw.c
index 0e378b5b..5c2720b1 100644
--- a/src/rglfw.c
+++ b/src/rglfw.c
@@ -34,8 +34,8 @@
// _GLFW_X11 to use the X Window System
// _GLFW_WAYLAND to use the Wayland API (experimental and incomplete)
// _GLFW_COCOA to use the Cocoa frameworks
-// _GLFW_OSMESA to use the OSMesa API (headless and non-interactive)
-// _GLFW_MIR experimental, not supported at this moment
+//
+// Note: GLFW's runtime platform selection is not supported at the moment
//----------------------------------------------------------------------------------
// Feature Test Macros required for this module
@@ -69,6 +69,15 @@
#define _WIN32_WINNT_WINXP 0x0501
#endif
+#include "external/glfw/src/internal.h"
+
+// We do not use GLFW's "null" platform, but the absence of this function
+// causes the build to fail
+GLFWbool _glfwConnectNull(int platformID, _GLFWplatform* platform)
+{
+ return GLFW_TRUE;
+}
+
// Common modules to all platforms
#include "external/glfw/src/init.c"
#include "external/glfw/src/platform.c"