From 10cfcd9f3c6e8a91fd89a02c4cd54e00105a5caa Mon Sep 17 00:00:00 2001 From: keks137 Date: Tue, 13 Jan 2026 20:19:00 +0100 Subject: [PATCH] make glfw use absolute paths so no include paths have to be supplied --- src/platforms/rcore_desktop_glfw.c | 8 ++++---- src/platforms/rcore_web.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index f39e256aa..d1dc43257 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -48,7 +48,7 @@ #define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3 // NOTE: Already provided by rlgl implementation (on glad.h) -#include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management +#include "../external/glfw/include/GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management // NOTE: GLFW3 already includes gl.h (OpenGL) headers // Support retrieving native window handlers @@ -63,7 +63,7 @@ #define GLFW_EXPOSE_NATIVE_WIN32 #define GLFW_NATIVE_INCLUDE_NONE // To avoid some symbols re-definition in windows.h - #include "GLFW/glfw3native.h" + #include "../external/glfw/include/GLFW/glfw3native.h" #if defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP) // NOTE: Those functions require linking with winmm library @@ -89,7 +89,7 @@ #define GLFW_EXPOSE_NATIVE_WAYLAND #endif - #include "GLFW/glfw3native.h" // Include native header only once, regardless of how many backends are defined + #include "../external/glfw/include/GLFW/glfw3native.h" // Include native header only once, regardless of how many backends are defined // Required for: glfwGetX11Window() and glfwGetWaylandWindow() #if defined(_GLFW_X11) // Clean up X11-specific hacks #undef Font // Revert hack and allow normal raylib Font usage @@ -101,7 +101,7 @@ //#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition void *glfwGetCocoaWindow(GLFWwindow* handle); - #include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow() + #include "../external/glfw/include/GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow() #endif #include // Required for: size_t diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c index f1922600f..32690c1bd 100644 --- a/src/platforms/rcore_web.c +++ b/src/platforms/rcore_web.c @@ -44,7 +44,7 @@ #define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3 // NOTE: Already provided by rlgl implementation (on glad.h) -#include "GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management +#include "../external/glfw/include/GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management #include // Emscripten functionality for C #include // Emscripten HTML5 library