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:
2024-08-28 00:58:12 +01:00
parent 1049f2b561
commit 0a4de92862
3 changed files with 3 additions and 2 deletions

BIN
dotscape

Binary file not shown.

View File

@@ -1,6 +1,6 @@
#include "export.h"
#include <GLFW/glfw3.h>
#include <stdbool.h>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
// GLFW constants used below
int CONTEXT_VERSION_MAJOR = GLFW_CONTEXT_VERSION_MAJOR;

View File

@@ -1,4 +1,5 @@
#include "export.h"
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
int PRESS = GLFW_PRESS;