define GLFW_INCLUDE_NONE, so glfw knows we're using custom headers.

This commit is contained in:
2025-09-15 13:51:31 +02:00
parent 25fa078c98
commit 11c8748262
2 changed files with 1 additions and 4 deletions

View File

@@ -99,10 +99,6 @@ IncludeIsMainSourceRegex: ''
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<glad/gl\.h>'
Priority: 1
SortPriority: 0
CaseSensitive: true
- Regex: '^<.*\.h>'
Priority: 2
SortPriority: 0

View File

@@ -12,6 +12,7 @@ CMAKE ?= cmake -G 'Unix Makefiles'
CPPFLAGS ?=
CFLAGS ?= -O2 -Wall -Wextra -Wpedantic -Wno-pointer-arith
LDFLAGS ?= -flto
CPPFLAGS += -DGLFW_INCLUDE_NONE
CFLAGS += -std=gnu99
# add a few extra flags depending on whether