multilib_header_wrapper.h 895 B

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