aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/3ds/config.cpp3
-rw-r--r--backends/platform/3ds/options-dialog.cpp2
-rw-r--r--backends/platform/3ds/osystem-events.cpp4
-rw-r--r--backends/platform/3ds/osystem.cpp1
-rw-r--r--backends/platform/3ds/osystem.h3
-rw-r--r--backends/platform/3ds/sprite.cpp1
-rw-r--r--backends/platform/3ds/sprite.h5
7 files changed, 14 insertions, 5 deletions
diff --git a/backends/platform/3ds/config.cpp b/backends/platform/3ds/config.cpp
index bfadc5ac06..663c6aede8 100644
--- a/backends/platform/3ds/config.cpp
+++ b/backends/platform/3ds/config.cpp
@@ -20,11 +20,12 @@
*
*/
+#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
+
#include "config.h"
#include "osystem.h"
#include "options-dialog.h"
#include "common/config-manager.h"
-#include <3ds.h>
namespace _3DS {
diff --git a/backends/platform/3ds/options-dialog.cpp b/backends/platform/3ds/options-dialog.cpp
index 60fe7f818f..080ef29aec 100644
--- a/backends/platform/3ds/options-dialog.cpp
+++ b/backends/platform/3ds/options-dialog.cpp
@@ -20,6 +20,8 @@
*
*/
+#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
+
#include "options-dialog.h"
#include "config.h"
#include "gui/dialog.h"
diff --git a/backends/platform/3ds/osystem-events.cpp b/backends/platform/3ds/osystem-events.cpp
index 064540fa66..de0f58426c 100644
--- a/backends/platform/3ds/osystem-events.cpp
+++ b/backends/platform/3ds/osystem-events.cpp
@@ -20,12 +20,14 @@
*
*/
+#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
+
+#include "osystem.h"
#include "backends/timer/default/default-timer.h"
#include "engines/engine.h"
#include "gui.h"
#include "options-dialog.h"
#include "config.h"
-#include "osystem.h"
namespace _3DS {
diff --git a/backends/platform/3ds/osystem.cpp b/backends/platform/3ds/osystem.cpp
index e19ff8f8de..c42e208b40 100644
--- a/backends/platform/3ds/osystem.cpp
+++ b/backends/platform/3ds/osystem.cpp
@@ -24,6 +24,7 @@
#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
+#include <3ds.h>
#include "osystem.h"
#include "backends/saves/default/default-saves.h"
diff --git a/backends/platform/3ds/osystem.h b/backends/platform/3ds/osystem.h
index cad46a18dc..6901295640 100644
--- a/backends/platform/3ds/osystem.h
+++ b/backends/platform/3ds/osystem.h
@@ -23,7 +23,8 @@
#ifndef PLATFORM_3DS_H
#define PLATFORM_3DS_H
-#include <citro3d.h>
+#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
+
#include "backends/mutex/mutex.h"
#include "backends/base-backend.h"
#include "graphics/palette.h"
diff --git a/backends/platform/3ds/sprite.cpp b/backends/platform/3ds/sprite.cpp
index 842729c051..7d860743a2 100644
--- a/backends/platform/3ds/sprite.cpp
+++ b/backends/platform/3ds/sprite.cpp
@@ -22,7 +22,6 @@
#include "backends/platform/3ds/sprite.h"
#include "common/util.h"
-#include <3ds.h>
static uint nextHigher2(uint v) {
if (v == 0)
diff --git a/backends/platform/3ds/sprite.h b/backends/platform/3ds/sprite.h
index 129c2689e7..35c048c24b 100644
--- a/backends/platform/3ds/sprite.h
+++ b/backends/platform/3ds/sprite.h
@@ -23,8 +23,11 @@
#ifndef GRAPHICS_SPRITE_3DS_H
#define GRAPHICS_SPRITE_3DS_H
-#include <citro3d.h>
+#define FORBIDDEN_SYMBOL_EXCEPTION_time_h
+
#include "graphics/surface.h"
+#include <3ds.h>
+#include <citro3d.h>
#define TEXTURE_TRANSFER_FLAGS \
(GX_TRANSFER_FLIP_VERT(1) | GX_TRANSFER_OUT_TILED(1) | GX_TRANSFER_RAW_COPY(0) | \