summaryrefslogtreecommitdiff
path: root/mingw-w64-raylib-static/raylib_glfw.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mingw-w64-raylib-static/raylib_glfw.patch')
-rw-r--r--mingw-w64-raylib-static/raylib_glfw.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/mingw-w64-raylib-static/raylib_glfw.patch b/mingw-w64-raylib-static/raylib_glfw.patch
new file mode 100644
index 0000000..8f3e28b
--- /dev/null
+++ b/mingw-w64-raylib-static/raylib_glfw.patch
@@ -0,0 +1,12 @@
+Fixes issues with name conflicts building with external glfw
+--- a/src/rcore.c
++++ b/src/rcore.c
+@@ -214,7 +214,7 @@
+
+ // Support retrieving native window handlers
+ #if defined(_WIN32)
+- #define GLFW_EXPOSE_NATIVE_WIN32
++// #define GLFW_EXPOSE_NATIVE_WIN32
+ #include "GLFW/glfw3native.h" // WARNING: It requires customization to avoid windows.h inclusion!
+
+ #if defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP)