aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authoraliaspider2014-11-04 04:33:20 +0100
committeraliaspider2014-11-04 04:33:20 +0100
commitf1652ab19293a9dc623d1b201456995456b495f3 (patch)
tree74f9358a9dc781c4051332575d984813e57ee62a /source
parent4a54fd4018adf931fb436acba2399efc6d6d1176 (diff)
downloadsnesemu-f1652ab19293a9dc623d1b201456995456b495f3.tar.gz
snesemu-f1652ab19293a9dc623d1b201456995456b495f3.tar.bz2
snesemu-f1652ab19293a9dc623d1b201456995456b495f3.zip
(PSP) fix address alignment exception when compiling with USE_BLARGG_APU
Diffstat (limited to 'source')
-rw-r--r--source/apu_blargg.c7
-rw-r--r--source/blargg_endian.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/source/apu_blargg.c b/source/apu_blargg.c
index 6a562ef..c241ec4 100644
--- a/source/apu_blargg.c
+++ b/source/apu_blargg.c
@@ -181,6 +181,10 @@
#include <stdlib.h>
#include <limits.h>
+#ifndef INLINE
+#define INLINE inline
+#endif
+
#include "blargg_endian.h"
#include "apu_blargg.h"
@@ -188,9 +192,6 @@
//#include "snapshot.h"
#include "display.h"
-#ifndef INLINE
-#define INLINE inline
-#endif
/***********************************************************************************
SPC DSP
diff --git a/source/blargg_endian.h b/source/blargg_endian.h
index 28889db..8322fb1 100644
--- a/source/blargg_endian.h
+++ b/source/blargg_endian.h
@@ -5,7 +5,7 @@
#define BLARGG_ENDIAN
/* Uncomment to enable platform-specific (and possibly non-portable) optimizations */
-#ifndef EMSCRIPTEN
+#if !defined(EMSCRIPTEN) && !defined(__mips__)
#define BLARGG_NONPORTABLE 1
#endif