From 799d2d6bb1bdd7b0761fb3da9be9b80eac4b5128 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 5 Nov 2024 14:06:42 +0000 Subject: [PATCH] Use "sdl.h" include and sdl-config include path in build. --- Makefile | 2 +- src/platform_sdl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6406c1a..e006bd7 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ DEBUG ?= false USER_CFLAGS ?= L_FLAGS ?= -lm -C_FLAGS ?= -Isrc/libs/ -std=gnu99 -Wall -Wno-unused-variable $(USER_CFLAGS) +C_FLAGS ?= -Isrc/libs/ -std=gnu99 -Wall -Wno-unused-variable $(USER_CFLAGS) $(shell sdl2-config --cflags) ifeq ($(DEBUG), true) C_FLAGS := $(C_FLAGS) -g diff --git a/src/platform_sdl.c b/src/platform_sdl.c index 1e68328..c881618 100755 --- a/src/platform_sdl.c +++ b/src/platform_sdl.c @@ -1,4 +1,4 @@ -#include +#include "SDL.h" #include "platform.h" #include "input.h"