in C files where GLFW is included, #define GLFW_INCLUDE_NONE before GLFW is included in that file, because GLFW tries looking for <GL/gl.h> header otherwise, which is not on my system
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#include "export.h"
|
|
||||||
#include <GLFW/glfw3.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#define GLFW_INCLUDE_NONE
|
||||||
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
// GLFW constants used below
|
// GLFW constants used below
|
||||||
int CONTEXT_VERSION_MAJOR = GLFW_CONTEXT_VERSION_MAJOR;
|
int CONTEXT_VERSION_MAJOR = GLFW_CONTEXT_VERSION_MAJOR;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "export.h"
|
#include "export.h"
|
||||||
|
#define GLFW_INCLUDE_NONE
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
int PRESS = GLFW_PRESS;
|
int PRESS = GLFW_PRESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user