Fixed a lazySlot bug where lazy slots in different objects end up pointing to the...
[io/quag.git] / libs / iovm / source / IoConfig.h
blob21daf5017b80934302cb4c48c055bac8faf89494
1 #define _POSIX_C_SOURCE
2 #define IO_COMPILER_TYPE gcc
4 /* ---------------------------------------------------------- */
6 #include <setjmp.h>
8 /* Solaris 9 Sparc with GCC */
9 #if defined(__SVR4) && defined (__sun)
11 #define IO_OS_TYPE solaris
12 #define IO_COMPILER_TYPE gcc
14 #if defined(_JBLEN) && (_JBLEN == 12) && defined(__sparc)
15 #define IO_PROCESSOR_TYPE powerpc
17 /* Solaris 9 i386 with GCC */
18 #elif defined(_JBLEN) && (_JBLEN == 10) && defined(__i386)
19 #define IO_PROCESSOR_TYPE i386
21 #endif
22 #endif
24 /* #if defined(__MACOSX__) && defined(_BSD_PPC_SETJMP_H_) */
25 #if defined(_BSD_PPC_SETJMP_H_)
26 /* OSX/PPC */
27 #define IO_OS_TYPE darwin
28 #define IO_PROCESSOR_TYPE powerpc
30 #elif defined(sgi) && defined(_IRIX4_SIGJBLEN)
31 /* Irix/SGI */
32 #define IO_OS_TYPE irix
33 #define IO_PROCESSOR_TYPE mips
35 #elif defined(linux)
36 /* Various flavors of Linux. */
37 #if defined(JB_GPR1)
38 /* Linux/PPC */
40 #define IO_OS_TYPE linux
41 #define IO_PROCESSOR_TYPE powerpc
43 #elif defined(JB_RBX)
44 /* Linux/Opteron */
46 #define IO_OS_TYPE linux
47 #define IO_PROCESSOR_TYPE i386
49 #elif defined(JB_SP)
50 /* Linux/i386 with glibc2 */
52 #define IO_OS_TYPE linux
53 #define IO_PROCESSOR_TYPE i386
54 #define IO_LIBC_TYPE glibc2
56 #elif defined(_I386_JMP_BUF_H)
57 /* i386-linux with libc5 */
58 #define IO_OS_TYPE linux
59 #define IO_PROCESSOR_TYPE i386
60 #define IO_LIBC_TYPE libc5
62 #elif defined(__JMP_BUF_SP)
63 /* arm-linux on the sharp zauras */
64 #define IO_OS_TYPE linux
65 #define IO_PROCESSOR_TYPE arm
67 #endif
69 #elif defined(__CYGWIN__)
70 #define IO_OS_TYPE cygwin
72 #elif defined(__MINGW32__)
73 #define IO_OS_TYPE mingw
75 #elif defined(_MSC_VER)
76 /* win32 visual c - should this be the same as __MINGW32__? */
77 #define IO_OS_TYPE win32
79 #elif defined(__SYMBIAN32__)
80 #define IO_OS_TYPE symbian
82 #elif defined(__FreeBSD__)
83 #define IO_OS_TYPE io_freebsd
85 #if defined(_JBLEN) && (_JBLEN == 81)
86 /* FreeBSD/Alpha */
87 #define IO_PROCESSOR_TYPE alpha
89 #elif defined(_JBLEN)
90 /* FreeBSD on IA32 */
91 #define IO_PROCESSOR_TYPE i386
92 #endif
94 #elif defined(__NetBSD__)
95 /* NetBSD. */
96 /* NetBSD i386. */
97 #define IO_OS_TYPE netbsd
98 #define IO_PROCESSOR_TYPE i386
99 #endif
101 #elif defined(__SVR4) && defined(__sun)
102 /* Solaris. */
103 #if defined(SUN_PROGRAM_COUNTER)
104 /* SunOS 9 */
105 #define IO_OS_TYPE sunos
106 #endif
107 #endif