3 #elif defined(__amd64__) || defined(__x86_64__)
5 #elif defined(i386) || defined(__i386) || defined(__i386__) || defined(WIN32)
7 #elif defined(__POWERPC__) || defined(__ppc__) || defined(_ARCH_PPC)
10 #error "Unsupported architecture"
15 #include "os-windows-ce.h"
17 #include "os-windows-nt.h"
20 #include "os-windows.h"
21 #if defined(FACTOR_AMD64)
22 #include "os-windows-nt.64.h"
23 #elif defined(FACTOR_X86)
24 #include "os-windows-nt.32.h"
30 #include "os-macosx.h"
31 #include "mach_signal.h"
34 #include "os-macosx-x86.32.h"
35 #elif defined(FACTOR_PPC)
36 #include "os-macosx-ppc.h"
37 #elif defined(FACTOR_AMD64)
38 #include "os-macosx-x86.64.h"
40 #error "Unsupported Mac OS X flavor"
43 #include "os-genunix.h"
46 #define FACTOR_OS_STRING "freebsd"
47 #include "os-freebsd.h"
49 #if defined(FACTOR_X86)
50 #include "os-freebsd-x86.32.h"
51 #elif defined(FACTOR_AMD64)
52 #include "os-freebsd-x86.64.h"
54 #error "Unsupported FreeBSD flavor"
56 #elif defined(__OpenBSD__)
57 #define FACTOR_OS_STRING "openbsd"
59 #if defined(FACTOR_X86)
60 #include "os-openbsd-x86.32.h"
61 #elif defined(FACTOR_AMD64)
62 #include "os-openbsd-x86.64.h"
64 #error "Unsupported OpenBSD flavor"
66 #elif defined(__NetBSD__)
67 #define FACTOR_OS_STRING "netbsd"
69 #if defined(FACTOR_X86)
70 #include "os-netbsd-x86.32.h"
71 #elif defined(FACTOR_AMD64)
72 #include "os-netbsd-x86.64.h"
74 #error "Unsupported NetBSD flavor"
77 #include "os-netbsd.h"
79 #define FACTOR_OS_STRING "linux"
82 #if defined(FACTOR_X86)
83 #include "os-linux-x86.32.h"
84 #elif defined(FACTOR_PPC)
85 #include "os-linux-ppc.h"
86 #elif defined(FACTOR_ARM)
87 #include "os-linux-arm.h"
88 #elif defined(FACTOR_AMD64)
89 #include "os-linux-x86.64.h"
91 #error "Unsupported Linux flavor"
93 #elif defined(__SVR4) && defined(sun)
94 #define FACTOR_OS_STRING "solaris"
96 #if defined(FACTOR_X86)
97 #include "os-solaris-x86.32.h"
98 #elif defined(FACTOR_AMD64)
99 #incluide "os-solaris-x86.64.h"
101 #error "Unsupported Solaris flavor"
105 #error "Unsupported OS"
110 #if defined(FACTOR_X86)
111 #include "cpu-x86.32.h"
113 #elif defined(FACTOR_AMD64)
114 #include "cpu-x86.64.h"
116 #elif defined(FACTOR_PPC)
118 #elif defined(FACTOR_ARM)
121 #error "Unsupported CPU"