/Modules/_ctypes/libffi_osx/include/fficonfig.h

http://unladen-swallow.googlecode.com/ · C++ Header · 150 lines · 68 code · 33 blank · 49 comment · 1 complexity · 08cca8025e505d25165ffa052229559c MD5 · raw file

  1. /* Manually created fficonfig.h for Darwin on PowerPC or Intel
  2. This file is manually generated to do away with the need for autoconf and
  3. therefore make it easier to cross-compile and build fat binaries.
  4. NOTE: This file was added by PyObjC.
  5. */
  6. #ifndef MACOSX
  7. #error "This file is only supported on Mac OS X"
  8. #endif
  9. #if defined(__i386__)
  10. # define BYTEORDER 1234
  11. # undef HOST_WORDS_BIG_ENDIAN
  12. # undef WORDS_BIGENDIAN
  13. # define SIZEOF_DOUBLE 8
  14. # define HAVE_LONG_DOUBLE 1
  15. # define SIZEOF_LONG_DOUBLE 16
  16. #elif defined(__x86_64__)
  17. # define BYTEORDER 1234
  18. # undef HOST_WORDS_BIG_ENDIAN
  19. # undef WORDS_BIGENDIAN
  20. # define SIZEOF_DOUBLE 8
  21. # define HAVE_LONG_DOUBLE 1
  22. # define SIZEOF_LONG_DOUBLE 16
  23. #elif defined(__ppc__)
  24. # define BYTEORDER 4321
  25. # define HOST_WORDS_BIG_ENDIAN 1
  26. # define WORDS_BIGENDIAN 1
  27. # define SIZEOF_DOUBLE 8
  28. # if __GNUC__ >= 4
  29. # define HAVE_LONG_DOUBLE 1
  30. # define SIZEOF_LONG_DOUBLE 16
  31. # else
  32. # undef HAVE_LONG_DOUBLE
  33. # define SIZEOF_LONG_DOUBLE 8
  34. # endif
  35. #elif defined(__ppc64__)
  36. # define BYTEORDER 4321
  37. # define HOST_WORDS_BIG_ENDIAN 1
  38. # define WORDS_BIGENDIAN 1
  39. # define SIZEOF_DOUBLE 8
  40. # define HAVE_LONG_DOUBLE 1
  41. # define SIZEOF_LONG_DOUBLE 16
  42. #else
  43. #error "Unknown CPU type"
  44. #endif
  45. /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
  46. systems. This function is required for `alloca.c' support on those systems. */
  47. #undef CRAY_STACKSEG_END
  48. /* Define to 1 if using `alloca.c'. */
  49. /* #undef C_ALLOCA */
  50. /* Define to the flags needed for the .section .eh_frame directive. */
  51. #define EH_FRAME_FLAGS "aw"
  52. /* Define this if you want extra debugging. */
  53. /* #undef FFI_DEBUG */
  54. /* Define this is you do not want support for the raw API. */
  55. #define FFI_NO_RAW_API 1
  56. /* Define this if you do not want support for aggregate types. */
  57. /* #undef FFI_NO_STRUCTS */
  58. /* Define to 1 if you have `alloca', as a function or macro. */
  59. #define HAVE_ALLOCA 1
  60. /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). */
  61. #define HAVE_ALLOCA_H 1
  62. /* Define if your assembler supports .register. */
  63. /* #undef HAVE_AS_REGISTER_PSEUDO_OP */
  64. /* Define if your assembler and linker support unaligned PC relative relocs. */
  65. /* #undef HAVE_AS_SPARC_UA_PCREL */
  66. /* Define to 1 if you have the `memcpy' function. */
  67. #define HAVE_MEMCPY 1
  68. /* Define if mmap with MAP_ANON(YMOUS) works. */
  69. #define HAVE_MMAP_ANON 1
  70. /* Define if mmap of /dev/zero works. */
  71. /* #undef HAVE_MMAP_DEV_ZERO */
  72. /* Define if read-only mmap of a plain file works. */
  73. #define HAVE_MMAP_FILE 1
  74. /* Define if .eh_frame sections should be read-only. */
  75. /* #undef HAVE_RO_EH_FRAME */
  76. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  77. /* #undef NO_MINUS_C_MINUS_O */
  78. /* Name of package */
  79. #define PACKAGE "libffi"
  80. /* Define to the address where bug reports for this package should be sent. */
  81. #define PACKAGE_BUGREPORT "http://gcc.gnu.org/bugs.html"
  82. /* Define to the full name of this package. */
  83. #define PACKAGE_NAME "libffi"
  84. /* Define to the full name and version of this package. */
  85. #define PACKAGE_STRING "libffi 2.1"
  86. /* Define to the one symbol short name of this package. */
  87. #define PACKAGE_TARNAME "libffi"
  88. /* Define to the version of this package. */
  89. #define PACKAGE_VERSION "2.1"
  90. /* If using the C implementation of alloca, define if you know the
  91. direction of stack growth for your system; otherwise it will be
  92. automatically deduced at run-time.
  93. STACK_DIRECTION > 0 => grows toward higher addresses
  94. STACK_DIRECTION < 0 => grows toward lower addresses
  95. STACK_DIRECTION = 0 => direction of growth unknown */
  96. /* #undef STACK_DIRECTION */
  97. /* Define to 1 if you have the ANSI C header files. */
  98. #define STDC_HEADERS 1
  99. /* Define this if you are using Purify and want to suppress spurious messages. */
  100. /* #undef USING_PURIFY */
  101. /* Version number of package */
  102. #define VERSION "2.1-pyobjc"
  103. #ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
  104. # ifdef LIBFFI_ASM
  105. # define FFI_HIDDEN(name) .hidden name
  106. # else
  107. # define FFI_HIDDEN __attribute__((visibility ("hidden")))
  108. # endif
  109. #else
  110. # ifdef LIBFFI_ASM
  111. # define FFI_HIDDEN(name)
  112. # else
  113. # define FFI_HIDDEN
  114. # endif
  115. #endif