1 #define _POSIX_C_SOURCE
2 #define IO_COMPILER_TYPE gcc
4 /* ---------------------------------------------------------- */
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
24 /* #if defined(__MACOSX__) && defined(_BSD_PPC_SETJMP_H_) */
25 #if defined(_BSD_PPC_SETJMP_H_)
27 #define IO_OS_TYPE darwin
28 #define IO_PROCESSOR_TYPE powerpc
30 #elif defined(sgi) && defined(_IRIX4_SIGJBLEN)
32 #define IO_OS_TYPE irix
33 #define IO_PROCESSOR_TYPE mips
36 /* Various flavors of Linux. */
40 #define IO_OS_TYPE linux
41 #define IO_PROCESSOR_TYPE powerpc
46 #define IO_OS_TYPE linux
47 #define IO_PROCESSOR_TYPE i386
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
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)
87 #define IO_PROCESSOR_TYPE alpha
91 #define IO_PROCESSOR_TYPE i386
94 #elif defined(__NetBSD__)
97 #define IO_OS_TYPE netbsd
98 #define IO_PROCESSOR_TYPE i386
101 #elif defined(__SVR4) && defined(__sun)
103 #if defined(SUN_PROGRAM_COUNTER)
105 #define IO_OS_TYPE sunos