Skip to content

Commit 92deb63

Browse files
jdolanCopilot
andcommitted
Use -isystem instead of -I for Sources; prevents Math.h shadowing <math.h>
On case-insensitive filesystems, -I$(top_srcdir)/Sources causes <math.h> to resolve to ObjectivelyGPU/Math.h. -isystem places the project include path after real system headers in the search order. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 97d57cc commit 92deb63

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Examples/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ noinst_PROGRAMS = \
55
HelloCompute
66

77
CFLAGS += \
8-
-I$(top_srcdir)/Sources \
8+
-isystem $(top_srcdir)/Sources \
99
@HOST_CFLAGS@ \
1010
@OBJECTIVELY_CFLAGS@ \
1111
@SDL3_CFLAGS@

Sources/ObjectivelyGPU/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AUTOMAKE_OPTIONS = nostdinc
2-
AM_CPPFLAGS = -I$(top_srcdir)/Sources -iquote$(top_builddir)/Sources/ObjectivelyGPU
2+
AM_CPPFLAGS = -isystem $(top_srcdir)/Sources -iquote$(top_builddir)/Sources/ObjectivelyGPU
33

44
noinst_HEADERS = \
55
Config.h

0 commit comments

Comments
 (0)