Use __3DS__ instead of _3DS

This commit is contained in:
fincs 2021-08-07 19:12:47 +02:00
parent 1f4669fa4c
commit 48967dc417
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60
3 changed files with 8 additions and 4 deletions

View File

@ -50,7 +50,7 @@ CFLAGS := -g -Wall -Werror -mword-relocations \
$(ARCH) \
$(BUILD_CFLAGS)
CFLAGS += $(INCLUDE) -DARM11 -D_3DS
CFLAGS += $(INCLUDE) -D__3DS__
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11

View File

@ -8,6 +8,11 @@
extern "C" {
#endif
#if defined(_3DS) && !defined(__3DS__)
#warning "Please update your Makefile and replace -DARM11 -D_3DS with -D__3DS__"
#define __3DS__
#endif
//might be missing some
#include <3ds/types.h>
#include <3ds/result.h>

View File

@ -1,4 +1,3 @@
#include <3ds.h>
#include <string.h>
#include <3ds/types.h>
#include <3ds/synchronization.h>