PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 3ms RepoModel.GetById 17ms app.codeStats 0ms

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