From 08d2ee4a2e98cb7fa0446c894c04527459acf44f Mon Sep 17 00:00:00 2001 From: HJfod Date: Fri, 3 Jan 2025 12:13:06 +0200 Subject: [PATCH] fix case-sensitive paths on linux --- .../platform/third_party/win32/OGLES/GL/glew.h | 6 +++++- loader/include/Geode/cocos/robtop/glfw/glfw3.h | 13 +++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/loader/include/Geode/cocos/platform/third_party/win32/OGLES/GL/glew.h b/loader/include/Geode/cocos/platform/third_party/win32/OGLES/GL/glew.h index 0cd6ae3af..650631406 100644 --- a/loader/include/Geode/cocos/platform/third_party/win32/OGLES/GL/glew.h +++ b/loader/include/Geode/cocos/platform/third_party/win32/OGLES/GL/glew.h @@ -1164,7 +1164,11 @@ GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei heigh # if defined(__APPLE__) && defined(__MACH__) # include # else -# include +# if defined(__linux__) +# include +# else +# include +# endif # endif #endif diff --git a/loader/include/Geode/cocos/robtop/glfw/glfw3.h b/loader/include/Geode/cocos/robtop/glfw/glfw3.h index 89414491e..b0b3c3b5e 100644 --- a/loader/include/Geode/cocos/robtop/glfw/glfw3.h +++ b/loader/include/Geode/cocos/robtop/glfw/glfw3.h @@ -182,13 +182,22 @@ extern "C" { #include #endif #elif !defined(GLFW_INCLUDE_NONE) - #include + // AWESOME: Splat puts stuff in "gl" instead of "GL" which breaks Linux because their paths are case-sensitive + #if defined(__linux__) + #include + #else + #include + #endif #if defined(GLFW_INCLUDE_GLEXT) #include #endif #endif #if defined(GLFW_INCLUDE_GLU) - #include + #if defined(__linux__) + #include + #else + #include + #endif #endif #endif