diff --git a/Makefile b/Makefile index 0f0078b..5467077 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ CFLAGS := -g -Wall -Wno-sizeof-array-div -Werror -mword-relocations \ -ffunction-sections -fdata-sections \ $(ARCH) $(BUILD_CFLAGS) -CFLAGS += $(INCLUDE) -DARM11 -D_3DS -DCITRO3D_BUILD +CFLAGS += $(INCLUDE) -D__3DS__ -DCITRO3D_BUILD CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 diff --git a/include/c3d/types.h b/include/c3d/types.h index bfabbf8..1ee8334 100644 --- a/include/c3d/types.h +++ b/include/c3d/types.h @@ -1,5 +1,5 @@ #pragma once -#ifdef _3DS +#if defined(__3DS__) || defined(_3DS) #include <3ds.h> #else #include diff --git a/test/3ds/Makefile b/test/3ds/Makefile index dc61171..abf676d 100644 --- a/test/3ds/Makefile +++ b/test/3ds/Makefile @@ -47,10 +47,10 @@ ICON := ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft CFLAGS := -g -Wall -O3 -mword-relocations \ - -fomit-frame-pointer -ffunction-sections \ + -ffunction-sections \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM11 -D_3DS +CFLAGS += $(INCLUDE) -D__3DS__ CXXFLAGS := $(CFLAGS) -fno-rtti -std=gnu++11