17 lines
808 B
Diff
17 lines
808 B
Diff
--- Source/WTF/wtf/Platform.h 2020-04-14 00:51:51.000000000 +0200
|
|
+++ Source/WTF/wtf/Platform.h 2020-08-02 15:08:02.169747050 +0200
|
|
@@ -95,7 +95,12 @@
|
|
#define WTF_MIPS_PIC (defined __PIC__)
|
|
#define WTF_MIPS_ISA(v) (defined WTF_MIPS_ARCH && WTF_MIPS_ARCH == v)
|
|
#define WTF_MIPS_ISA_AT_LEAST(v) (defined WTF_MIPS_ARCH && WTF_MIPS_ARCH >= v)
|
|
-#define WTF_MIPS_ARCH_REV __mips_isa_rev
|
|
+#ifdef __mips_isa_rev
|
|
+#define WTF_MIPS_ARCH_REV __mips_isa_rev
|
|
+#else
|
|
+/* The compiler hasn't defined the isa rev so assume it's MIPS I - V (0) */
|
|
+#define WTF_MIPS_ARCH_REV 0
|
|
+#endif
|
|
#define WTF_MIPS_ISA_REV(v) (defined WTF_MIPS_ARCH_REV && WTF_MIPS_ARCH_REV == v)
|
|
#define WTF_MIPS_DOUBLE_FLOAT (defined __mips_hard_float && !defined __mips_single_float)
|
|
#define WTF_MIPS_FP64 (defined __mips_fpr && __mips_fpr == 64)
|