diff --git a/examples/Makefile b/examples/Makefile index c16dbed53..93b943ab4 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -204,7 +204,7 @@ endif CFLAGS += -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result ifeq ($(BUILD_MODE),DEBUG) - CFLAGS += -g + CFLAGS += -g -D_DEBUG ifeq ($(PLATFORM),PLATFORM_WEB) CFLAGS += -s ASSERTIONS=1 --profiling endif diff --git a/src/Makefile b/src/Makefile index 67ed2f840..1eef421a2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -283,7 +283,7 @@ ifeq ($(PLATFORM_OS), LINUX) endif ifeq ($(RAYLIB_BUILD_MODE),DEBUG) - CFLAGS += -g + CFLAGS += -g -D_DEBUG endif ifeq ($(RAYLIB_BUILD_MODE),RELEASE)