]> code.ossystems Code Review - openembedded-core.git/commitdiff
multilib_header_wrapper: Drop using __MHWORDSIZE
authorKhem Raj <raj.khem@gmail.com>
Sat, 16 May 2020 15:58:42 +0000 (08:58 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 May 2020 05:31:53 +0000 (06:31 +0100)
This is not needed as __WORDSIZE already represents same value and is
directly defined in wordsize.h, this simplifies the multlib headers

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/multilib_header_wrapper.h

index df01b56a72a182ba272503e18dceb09396653c9b..88f319381235dbfde388590c9d3e478908f427a4 100644 (file)
@@ -5,22 +5,9 @@
  * 
  */
 
-#if defined (__arm__)
-#define __MHWORDSIZE                   32
-#elif defined (__aarch64__) && defined ( __LP64__)
-#define __MHWORDSIZE                   64
-#elif defined (__aarch64__)
-#define __MHWORDSIZE                   32
-#else
 #include <bits/wordsize.h>
-#if defined (__WORDSIZE)
-#define __MHWORDSIZE                   __WORDSIZE
-#else
-#error "__WORDSIZE is not defined"
-#endif
-#endif
 
-#if __MHWORDSIZE == 32
+#if __WORDSIZE == 32
 
 #ifdef _MIPS_SIM
 
@@ -36,7 +23,7 @@
 #include <ENTER_HEADER_FILENAME_HERE-32.h>
 #endif
 
-#elif __MHWORDSIZE == 64
+#elif __WORDSIZE == 64
 #include <ENTER_HEADER_FILENAME_HERE-64.h>
 #else
 #error "Unknown __WORDSIZE detected"