[PATCH 1/7] arch: add predefine for __mips__

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This define was missing for MIPS, add it.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 lib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib.c b/lib.c
index 75a4f9870..2a517b447 100644
--- a/lib.c
+++ b/lib.c
@@ -1329,6 +1329,7 @@ static void predefined_macros(void)
 			predefine("__mips64", 1, "64");
 		/* fall-through */
 	case MACH_MIPS32:
+		predefine("__mips__", 1, "1");
 		predefine("__mips", 1, "%d", ptr_ctype.bit_size);
 		predefine("_MIPS_SZINT", 1, "%d", int_ctype.bit_size);
 		predefine("_MIPS_SZLONG", 1, "%d", long_ctype.bit_size);
-- 
2.23.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux