xref: /openbmc/openbmc/poky/scripts/multilib_header_wrapper.h (revision c124f4f2e04dca16a428a76c89677328bc7bf908)
1* /*
2*  * Copyright (C) 2005-2011 by Wind River Systems, Inc.
3*  *
4*  * SPDX-License-Identifier: MIT
5*  *
6*  */
7* 
8* #include <bits/wordsize.h>
9* 
10* #if __WORDSIZE == 32
11* 
12* #ifdef _MIPS_SIM
13* 
14* #if _MIPS_SIM == _ABIO32
15* #include <ENTER_HEADER_FILENAME_HERE-32.h>
16* #elif _MIPS_SIM == _ABIN32
17* #include <ENTER_HEADER_FILENAME_HERE-n32.h>
18* #else
19* #error "Unknown _MIPS_SIM"
20* #endif
21* 
22* #else /* _MIPS_SIM is not defined */
23* #include <ENTER_HEADER_FILENAME_HERE-32.h>
24* #endif
25* 
26* #elif __WORDSIZE == 64
27* #include <ENTER_HEADER_FILENAME_HERE-64.h>
28* #else
29* #error "Unknown __WORDSIZE detected"
30* #endif /* matches #if __WORDSIZE == 32 */
31* 
32*