]> gitweb.factorcode.org Git - factor.git/blob - vm/platform.hpp
VM: Remove exec bit from VM source files
[factor.git] / vm / platform.hpp
1 #if defined(WINDOWS)
2         #if defined(WINNT)
3                 #include "os-windows.hpp"
4
5                 #if defined(FACTOR_AMD64)
6                         #include "os-windows.64.hpp"
7                 #elif defined(FACTOR_X86)
8                         #include "os-windows.32.hpp"
9                 #else
10                         #error "Unsupported Windows flavor"
11                 #endif
12         #else
13                 #error "Unsupported Windows flavor"
14         #endif
15 #else
16         #include "os-unix.hpp"
17
18         #ifdef __APPLE__
19                 #include "os-macosx.hpp"
20                 #include "mach_signal.hpp"
21                 
22                 #ifdef FACTOR_X86
23                         #include "os-macosx-x86.32.hpp"
24                 #elif defined(FACTOR_AMD64)
25                         #include "os-macosx-x86.64.hpp"
26                 #else
27                         #error "Unsupported Mac OS X flavor"
28                 #endif
29         #else
30                 #include "os-genunix.hpp"
31
32                 #if defined(linux)
33                         #define FACTOR_OS_STRING "linux"
34                         #include "os-linux.hpp"
35
36                         #if defined(FACTOR_X86)
37                                 #include "os-linux-x86.32.hpp"
38                         #elif defined(FACTOR_PPC64)
39                                 #include "os-linux-ppc.64.hpp"
40                         #elif defined(FACTOR_PPC32)
41                                 #include "os-linux-ppc.32.hpp"
42                         #elif defined(FACTOR_ARM)
43                                 #include "os-linux-arm.hpp"
44                         #elif defined(FACTOR_AMD64)
45                                 #include "os-linux-x86.64.hpp"
46                         #else
47                                 #error "Unsupported Linux flavor"
48                         #endif
49                 #else
50                         #error "Unsupported OS"
51                 #endif
52         #endif
53 #endif
54
55 #if defined(FACTOR_X86)
56         #include "cpu-x86.32.hpp"
57         #include "cpu-x86.hpp"
58 #elif defined(FACTOR_AMD64)
59         #include "cpu-x86.64.hpp"
60         #include "cpu-x86.hpp"
61 #elif defined(FACTOR_PPC)
62         #include "cpu-ppc.hpp"
63 #elif defined(FACTOR_ARM)
64         #include "cpu-arm.hpp"
65 #else
66         #error "Unsupported CPU"
67 #endif