pyconfig.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #if defined(__linux__)
  2. # if defined(__x86_64__) && defined(__LP64__)
  3. # include <x86_64-linux-gnu/python3.8/pyconfig.h>
  4. # elif defined(__x86_64__) && defined(__ILP32__)
  5. # include <x86_64-linux-gnux32/python3.8/pyconfig.h>
  6. # elif defined(__i386__)
  7. # include <i386-linux-gnu/python3.8/pyconfig.h>
  8. # elif defined(__aarch64__) && defined(__AARCH64EL__)
  9. # include <aarch64-linux-gnu/python3.8/pyconfig.h>
  10. # elif defined(__alpha__)
  11. # include <alpha-linux-gnu/python3.8/pyconfig.h>
  12. # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
  13. # include <arm-linux-gnueabihf/python3.8/pyconfig.h>
  14. # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
  15. # include <arm-linux-gnueabi/python3.8/pyconfig.h>
  16. # elif defined(__hppa__)
  17. # include <hppa-linux-gnu/python3.8/pyconfig.h>
  18. # elif defined(__ia64__)
  19. # include <ia64-linux-gnu/python3.8/pyconfig.h>
  20. # elif defined(__m68k__) && !defined(__mcoldfire__)
  21. # include <m68k-linux-gnu/python3.8/pyconfig.h>
  22. # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
  23. # if _MIPS_SIM == _ABIO32
  24. # include <mipsisa32r6el-linux-gnu/python3.8/pyconfig.h>
  25. # elif _MIPS_SIM == _ABIN32
  26. # include <mipsisa64r6el-linux-gnuabin32/python3.8/pyconfig.h>
  27. # elif _MIPS_SIM == _ABI64
  28. # include <mipsisa64r6el-linux-gnuabi64/python3.8/pyconfig.h>
  29. # else
  30. # error unknown multiarch location for pyconfig.h
  31. # endif
  32. # elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6)
  33. # if _MIPS_SIM == _ABIO32
  34. # include <mipsisa32r6-linux-gnu/python3.8/pyconfig.h>
  35. # elif _MIPS_SIM == _ABIN32
  36. # include <mipsisa64r6-linux-gnuabin32/python3.8/pyconfig.h>
  37. # elif _MIPS_SIM == _ABI64
  38. # include <mipsisa64r6-linux-gnuabi64/python3.8/pyconfig.h>
  39. # else
  40. # error unknown multiarch location for pyconfig.h
  41. # endif
  42. # elif defined(__mips_hard_float) && defined(_MIPSEL)
  43. # if _MIPS_SIM == _ABIO32
  44. # include <mipsel-linux-gnu/python3.8/pyconfig.h>
  45. # elif _MIPS_SIM == _ABIN32
  46. # include <mips64el-linux-gnuabin32/python3.8/pyconfig.h>
  47. # elif _MIPS_SIM == _ABI64
  48. # include <mips64el-linux-gnuabi64/python3.8/pyconfig.h>
  49. # else
  50. # error unknown multiarch location for pyconfig.h
  51. # endif
  52. # elif defined(__mips_hard_float)
  53. # if _MIPS_SIM == _ABIO32
  54. # include <mips-linux-gnu/python3.8/pyconfig.h>
  55. # elif _MIPS_SIM == _ABIN32
  56. # include <mips64-linux-gnuabin32/python3.8/pyconfig.h>
  57. # elif _MIPS_SIM == _ABI64
  58. # include <mips64-linux-gnuabi64/python3.8/pyconfig.h>
  59. # else
  60. # error unknown multiarch location for pyconfig.h
  61. # endif
  62. # elif defined(__or1k__)
  63. # include <or1k-linux-gnu/python3.8/pyconfig.h>
  64. # elif defined(__powerpc__) && defined(__SPE__)
  65. # include <powerpc-linux-gnuspe/python3.8/pyconfig.h>
  66. # elif defined(__powerpc64__)
  67. # if defined(__LITTLE_ENDIAN__)
  68. # include <powerpc64le-linux-gnu/python3.8/pyconfig.h>
  69. # else
  70. # include <powerpc64-linux-gnu/python3.8/pyconfig.h>
  71. # endif
  72. # elif defined(__powerpc__)
  73. # include <powerpc-linux-gnu/python3.8/pyconfig.h>
  74. # elif defined(__s390x__)
  75. # include <s390x-linux-gnu/python3.8/pyconfig.h>
  76. # elif defined(__s390__)
  77. # include <s390-linux-gnu/python3.8/pyconfig.h>
  78. # elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
  79. # include <sh4-linux-gnu/python3.8/pyconfig.h>
  80. # elif defined(__sparc__) && defined(__arch64__)
  81. # include <sparc64-linux-gnu/python3.8/pyconfig.h>
  82. # elif defined(__sparc__)
  83. # include <sparc-linux-gnu/python3.8/pyconfig.h>
  84. # elif defined(__riscv)
  85. # if __riscv_xlen == 64
  86. # include <riscv64-linux-gnu/python3.8/pyconfig.h>
  87. # else
  88. # include <riscv32-linux-gnu/python3.8/pyconfig.h>
  89. # endif
  90. # else
  91. # error unknown multiarch location for pyconfig.h
  92. # endif
  93. #elif defined(__FreeBSD_kernel__)
  94. # if defined(__LP64__)
  95. # include <x86_64-kfreebsd-gnu/python3.8/pyconfig.h>
  96. # elif defined(__i386__)
  97. # include <i386-kfreebsd-gnu/python3.8/pyconfig.h>
  98. # else
  99. # error unknown multiarch location for pyconfig.h
  100. # endif
  101. #elif defined(__gnu_hurd__)
  102. # include <i386-gnu/python3.8/pyconfig.h>
  103. #else
  104. # error unknown multiarch location for pyconfig.h
  105. #endif