1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 #ifndef NEDIT_SYSTEM_H_INCLUDED
31 #define NEDIT_SYSTEM_H_INCLUDED
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57 #if defined(__alpha) || defined (
_M_ALPHA)
58 # define
COMPILE_MACHINE "Alpha"
59
60 #elif defined(__mips)
61 # define
COMPILE_MACHINE "MIPS"
62
63 #elif defined(__sparc)
64 # define
COMPILE_MACHINE "Sparc"
65
66 #elif defined(__sparcv9)
67 # define
COMPILE_MACHINE "Sparc64"
68
69 #elif defined(__hppa)
70 # define
COMPILE_MACHINE "PA-RISC"
71
72 #elif defined(
__ALTIVEC__)
73 # define
COMPILE_MACHINE "PowerPC Altivec"
74
75 #elif defined(
__POWERPC__) || defined(__ppc__) || defined(__powerpc__) || defined(
_POWER)
76 # define
COMPILE_MACHINE "PowerPC"
77
78 #elif defined(__x86_64) || defined(_x86_64)
79 # define
COMPILE_MACHINE "x86-64"
80
81 #elif defined(
__IA64) || defined(__ia64)
82 # define
COMPILE_MACHINE "IA64"
83
84 #elif defined(__k6) || defined(__k6__)
85 # define
COMPILE_MACHINE "K6"
86
87 #elif defined(__athlon) || defined(__athlon__)
88 # define
COMPILE_MACHINE "Athlon"
89
90 #elif defined(__pentium4) || defined(__pentium4__)
91 # define
COMPILE_MACHINE "Pentium IV"
92
93 #elif defined(__pentium3) || defined(__pentium3__)
94 # define
COMPILE_MACHINE "Pentium III"
95
96 #elif defined(__pentium2) || defined(__pentium2__)
97 # define
COMPILE_MACHINE "Pentium II"
98
99 #elif defined(__pentiumpro) || defined(__pentiumpro__)
100 # define
COMPILE_MACHINE "Pentium Pro"
101
102 #elif defined(__pentium) || defined(__pentium__)
103 # define
COMPILE_MACHINE "Pentium"
104
105 #elif defined(__i486) || defined(__i486__)
106 # define
COMPILE_MACHINE "486"
107
108 #elif defined(__i386) || defined(__i386__)
109 # define
COMPILE_MACHINE "386"
110
111 #elif defined(
_M_IX86) || defined(
_X86_) || defined (__x86__)
112 # define
COMPILE_MACHINE "x86"
113
114 #elif defined(
__VAX)
115 # define
COMPILE_MACHINE "VAX"
116
117 #else
118 # define
COMPILE_MACHINE "Unknown"
119 #endif
120
121
122
123 #if defined(__osf__)
124 # define
COMPILE_OS "Tru64/Digital Unix"
125
126 #elif defined(__sun)
127 # define
COMPILE_OS "Solaris"
128
129 #elif defined(__hpux)
130 # define
COMPILE_OS "HP/UX"
131
132 #elif defined(
_WIN32) || defined(
__WIN32__) || defined(
__CYGWIN__)
133 # define
COMPILE_OS "Win32"
134
135 #elif defined(__sgi)
136 # define
COMPILE_OS "IRIX"
137
138 #elif defined(__Lynx__)
139 # define
COMPILE_OS "Lynx"
140
141 #elif defined(__linux__)
142 # define
COMPILE_OS "Linux"
143
144 #elif defined(
_AIX)
145 # define
COMPILE_OS "AIX"
146
147 #elif defined(
__VMS)
148 # define
COMPILE_OS "VMS"
149
150 #elif defined(__FreeBSD__)
151 # define
COMPILE_OS "FreeBSD"
152
153 #elif defined(__OpenBSD__)
154 # define
COMPILE_OS "OpenBSD"
155
156 #elif defined(__NetBSD__)
157 # define
COMPILE_OS "NetBSD"
158
159 #elif defined(__bsdi)
160 # define
COMPILE_OS "BSDI"
161
162 #elif defined(__ultrix)
163 # define
COMPILE_OS "Ultrix"
164
165 #elif defined(
__EMX__)
166 # define
COMPILE_OS "OS/2"
167
168 #elif defined(
__APPLE__) || defined(
__MACOSX__)
169 # define
COMPILE_OS "MacOS X"
170
171 #elif defined(
__UNIXWARE__)
172 # define
COMPILE_OS "UnixWare"
173
174 #elif defined(__unix__)
175 # define
COMPILE_OS "Unix"
176
177 #else
178 # define
COMPILE_OS "Unknown"
179 #endif
180
181
182
183 #if defined (
__DECC)
184 # define
COMPILE_COMPILER "DEC C"
185
186 #elif defined (
__DECCXX)
187 # define
COMPILE_COMPILER "DEC C++"
188
189 #elif defined (
__APOGEE)
190 # define
COMPILE_COMPILER "Apogee"
191
192 #elif defined (
__SUNPRO_C)
193 # define
COMPILE_COMPILER "Sun Studio C"
194
195 #elif defined (
__SUNPRO_CC)
196 # define
COMPILE_COMPILER "Sun Studio C++"
197
198 #elif defined (
__LCC__)
199 # define
COMPILE_COMPILER "LCC"
200
201 #elif defined (
_MSC_VER)
202 # define
COMPILE_COMPILER "Microsoft C"
203
204 #elif defined (
__BORLANDC__)
205 # define
COMPILE_COMPILER "Borland C"
206
207 #elif defined (__sgi) && defined (
_COMPILER_VERSION)
208 # define
COMPILE_COMPILER "SGI MipsPro"
209
210 #elif defined (__xlC__)
211 # define
COMPILE_COMPILER "IBM xlC"
212
213 #elif defined (
__IBMC__)
214 # define
COMPILE_COMPILER "IBM C"
215
216 #elif defined (__HP_cc)
217 # define
COMPILE_COMPILER "HP cc"
218
219 #elif defined (__HP_aCC)
220 # define
COMPILE_COMPILER "HP aCC"
221
222 #elif defined (
__KCC)
223 # define
COMPILE_COMPILER "KAI C++"
224
225 #elif defined (
__MWERKS__)
226 # define
COMPILE_COMPILER "Metrowerks CodeWarrior"
227
228 #elif defined (
__WATCOMC__)
229 # define
COMPILE_COMPILER "Watcom C/C++"
230
231 #elif defined (
__INTEL_COMPILER)
232 # define
COMPILE_COMPILER "Intel C++"
233
234 #elif defined (__clang__)
235 # define
COMPILE_COMPILER "Clang"
236
237 #elif defined (__llvm__)
238 # define
COMPILE_COMPILER "LLVM"
239
240
241
242
243 #elif defined(
__GNUC__)
244 # define
COMPILE_COMPILER "GNU C"
245
246
247
248
249
250 #elif defined (__hpux)
251 # define
COMPILE_COMPILER "HP C [?]"
252
253 #elif defined (__sgi)
254 # define
COMPILE_COMPILER "SGI MipsPro [?]"
255
256 #else
257 # define
COMPILE_COMPILER "Unknown"
258 #endif
259
260 #endif
261