From 11c8748262eb624b9f97c7d75227e018cf0e567b Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 15 Sep 2025 13:51:31 +0200 Subject: [PATCH] define `GLFW_INCLUDE_NONE`, so glfw knows we're using custom headers. --- .clang-format | 4 ---- Makefile | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index dedc805..c5a4cae 100644 --- a/.clang-format +++ b/.clang-format @@ -99,10 +99,6 @@ IncludeIsMainSourceRegex: '' IncludeIsMainRegex: '([-_](test|unittest))?$' IncludeBlocks: Regroup IncludeCategories: - - Regex: '^' - Priority: 1 - SortPriority: 0 - CaseSensitive: true - Regex: '^<.*\.h>' Priority: 2 SortPriority: 0 diff --git a/Makefile b/Makefile index c249bb1..ea73c4e 100644 --- a/Makefile +++ b/Makefile @@ -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