mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
Include glfw3.h before glfw3native.h
glfw3native.h needs the GLFWmonitor, GLFWwindow and GLFWAPI declarations of glfw3.h, so the windows build failed on the win32 branch. Only that branch is affected: x11 resolves the GLFW accessors with dlsym and does not include the native header at all.
This commit is contained in:
parent
f13b75475f
commit
4bc81af726
1 changed files with 2 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ namespace {
|
|||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#define GLFW_EXPOSE_NATIVE_WIN32
|
||||
#include <GLFW/glfw3native.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue