summaryrefslogtreecommitdiffstats
path: root/scripts/multilib_header_wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/multilib_header_wrapper.h')
-rw-r--r--scripts/multilib_header_wrapper.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/scripts/multilib_header_wrapper.h b/scripts/multilib_header_wrapper.h
index df01b56a72..88f3193812 100644
--- a/scripts/multilib_header_wrapper.h
+++ b/scripts/multilib_header_wrapper.h
@@ -5,22 +5,9 @@
5 * 5 *
6 */ 6 */
7 7
8#if defined (__arm__)
9#define __MHWORDSIZE 32
10#elif defined (__aarch64__) && defined ( __LP64__)
11#define __MHWORDSIZE 64
12#elif defined (__aarch64__)
13#define __MHWORDSIZE 32
14#else
15#include <bits/wordsize.h> 8#include <bits/wordsize.h>
16#if defined (__WORDSIZE)
17#define __MHWORDSIZE __WORDSIZE
18#else
19#error "__WORDSIZE is not defined"
20#endif
21#endif
22 9
23#if __MHWORDSIZE == 32 10#if __WORDSIZE == 32
24 11
25#ifdef _MIPS_SIM 12#ifdef _MIPS_SIM
26 13
@@ -36,7 +23,7 @@
36#include <ENTER_HEADER_FILENAME_HERE-32.h> 23#include <ENTER_HEADER_FILENAME_HERE-32.h>
37#endif 24#endif
38 25
39#elif __MHWORDSIZE == 64 26#elif __WORDSIZE == 64
40#include <ENTER_HEADER_FILENAME_HERE-64.h> 27#include <ENTER_HEADER_FILENAME_HERE-64.h>
41#else 28#else
42#error "Unknown __WORDSIZE detected" 29#error "Unknown __WORDSIZE detected"