Don't include system GLFW headers.

This commit is contained in:
Relintai 2024-09-14 13:54:29 +02:00
parent 32820bd428
commit febe2396f1

View File

@ -89,21 +89,23 @@
#endif #endif
// GLFW // GLFW
#include <GLFW/glfw3.h>
#ifdef _WIN32 #ifdef _WIN32
#undef APIENTRY #undef APIENTRY
#ifndef GLFW_EXPOSE_NATIVE_WIN32 #ifndef GLFW_EXPOSE_NATIVE_WIN32
#define GLFW_EXPOSE_NATIVE_WIN32 #define GLFW_EXPOSE_NATIVE_WIN32
#endif #endif
#include <GLFW/glfw3native.h> // for glfwGetWin32Window() //#include <GLFW/glfw3native.h> // for glfwGetWin32Window()
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
#ifndef GLFW_EXPOSE_NATIVE_COCOA #ifndef GLFW_EXPOSE_NATIVE_COCOA
#define GLFW_EXPOSE_NATIVE_COCOA #define GLFW_EXPOSE_NATIVE_COCOA
#endif #endif
#include <GLFW/glfw3native.h> // for glfwGetCocoaWindow() //#include <GLFW/glfw3native.h> // for glfwGetCocoaWindow()
#endif #endif
#include "render_core/3rd_glfw3.h"
#ifndef _WIN32 #ifndef _WIN32
#include <unistd.h> // for usleep() #include <unistd.h> // for usleep()
#endif #endif