summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/platform.h')
-rw-r--r--crawl-ref/source/platform.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/platform.h b/crawl-ref/source/platform.h
index 40064d5896..654f35470d 100644
--- a/crawl-ref/source/platform.h
+++ b/crawl-ref/source/platform.h
@@ -103,6 +103,19 @@
#endif
#endif
+/* MIPS */
+#if !defined (PROCESSOR_DETECTED)
+#if defined (__MIPSEL__)
+#define PROCESSOR_DETECTED
+#define TARGET_CPU_MIPS
+#define TARGET_LIDDLE_ENDIAN
+#elif defined (__mips__)
+#define PROCESSOR_DETECTED
+#define TARGET_CPU_MIPS
+#define TARGET_BIG_ENDIAN
+#endif
+#endif
+
/* PowerPC */
#if !defined (PROCESSOR_DETECTED)
#if defined (_ARCH_PPC) || defined (__ppc__) || defined (__ppc64__) || defined (__PPC) || defined (powerpc) || defined (__PPC__) || defined (__powerpc64__) || defined (__powerpc64)