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