proxygen
CMakeCCompilerId.c
Go to the documentation of this file.
1 #ifdef __cplusplus
2 # error "A C++ compiler has been selected for C."
3 #endif
4 
5 #if defined(__18CXX)
6 # define ID_VOID_MAIN
7 #endif
8 
9 
10 /* Version number components: V=Version, R=Revision, P=Patch
11  Version date components: YYYY=Year, MM=Month, DD=Day */
12 
13 #if defined(__INTEL_COMPILER) || defined(__ICC)
14 # define COMPILER_ID "Intel"
15 # if defined(_MSC_VER)
16 # define SIMULATE_ID "MSVC"
17 # endif
18  /* __INTEL_COMPILER = VRP */
19 # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
20 # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
21 # if defined(__INTEL_COMPILER_UPDATE)
22 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
23 # else
24 # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
25 # endif
26 # if defined(__INTEL_COMPILER_BUILD_DATE)
27  /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
28 # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
29 # endif
30 # if defined(_MSC_VER)
31  /* _MSC_VER = VVRR */
32 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
33 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
34 # endif
35 
36 #elif defined(__PATHCC__)
37 # define COMPILER_ID "PathScale"
38 # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
39 # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
40 # if defined(__PATHCC_PATCHLEVEL__)
41 # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
42 # endif
43 
44 #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
45 # define COMPILER_ID "Embarcadero"
46 # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
47 # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
48 # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
49 
50 #elif defined(__BORLANDC__)
51 # define COMPILER_ID "Borland"
52  /* __BORLANDC__ = 0xVRR */
53 # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
54 # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
55 
56 #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
57 # define COMPILER_ID "Watcom"
58  /* __WATCOMC__ = VVRR */
59 # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
60 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
61 # if (__WATCOMC__ % 10) > 0
62 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
63 # endif
64 
65 #elif defined(__WATCOMC__)
66 # define COMPILER_ID "OpenWatcom"
67  /* __WATCOMC__ = VVRP + 1100 */
68 # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
69 # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
70 # if (__WATCOMC__ % 10) > 0
71 # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
72 # endif
73 
74 #elif defined(__SUNPRO_C)
75 # define COMPILER_ID "SunPro"
76 # if __SUNPRO_C >= 0x5100
77  /* __SUNPRO_C = 0xVRRP */
78 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
79 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
80 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
81 # else
82  /* __SUNPRO_CC = 0xVRP */
83 # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
84 # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
85 # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
86 # endif
87 
88 #elif defined(__HP_cc)
89 # define COMPILER_ID "HP"
90  /* __HP_cc = VVRRPP */
91 # define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
92 # define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
93 # define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
94 
95 #elif defined(__DECC)
96 # define COMPILER_ID "Compaq"
97  /* __DECC_VER = VVRRTPPPP */
98 # define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
99 # define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
100 # define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
101 
102 #elif defined(__IBMC__) && defined(__COMPILER_VER__)
103 # define COMPILER_ID "zOS"
104  /* __IBMC__ = VRP */
105 # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
106 # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
107 # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
108 
109 #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
110 # define COMPILER_ID "XL"
111  /* __IBMC__ = VRP */
112 # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
113 # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
114 # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
115 
116 #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
117 # define COMPILER_ID "VisualAge"
118  /* __IBMC__ = VRP */
119 # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
120 # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
121 # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
122 
123 #elif defined(__PGI)
124 # define COMPILER_ID "PGI"
125 # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
126 # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
127 # if defined(__PGIC_PATCHLEVEL__)
128 # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
129 # endif
130 
131 #elif defined(_CRAYC)
132 # define COMPILER_ID "Cray"
133 # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
134 # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
135 
136 #elif defined(__TI_COMPILER_VERSION__)
137 # define COMPILER_ID "TI"
138  /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
139 # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
140 # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
141 # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
142 
143 #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)
144 # define COMPILER_ID "Fujitsu"
145 
146 #elif defined(__TINYC__)
147 # define COMPILER_ID "TinyCC"
148 
149 #elif defined(__SCO_VERSION__)
150 # define COMPILER_ID "SCO"
151 
152 #elif defined(__clang__) && defined(__apple_build_version__)
153 # define COMPILER_ID "AppleClang"
154 # if defined(_MSC_VER)
155 # define SIMULATE_ID "MSVC"
156 # endif
157 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
158 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
159 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
160 # if defined(_MSC_VER)
161  /* _MSC_VER = VVRR */
162 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
163 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
164 # endif
165 # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
166 
167 #elif defined(__clang__)
168 # define COMPILER_ID "Clang"
169 # if defined(_MSC_VER)
170 # define SIMULATE_ID "MSVC"
171 # endif
172 # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
173 # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
174 # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
175 # if defined(_MSC_VER)
176  /* _MSC_VER = VVRR */
177 # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
178 # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
179 # endif
180 
181 #elif defined(__GNUC__)
182 # define COMPILER_ID "GNU"
183 # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
184 # if defined(__GNUC_MINOR__)
185 # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
186 # endif
187 # if defined(__GNUC_PATCHLEVEL__)
188 # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
189 # endif
190 
191 #elif defined(_MSC_VER)
192 # define COMPILER_ID "MSVC"
193  /* _MSC_VER = VVRR */
194 # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
195 # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
196 # if defined(_MSC_FULL_VER)
197 # if _MSC_VER >= 1400
198  /* _MSC_FULL_VER = VVRRPPPPP */
199 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
200 # else
201  /* _MSC_FULL_VER = VVRRPPPP */
202 # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
203 # endif
204 # endif
205 # if defined(_MSC_BUILD)
206 # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
207 # endif
208 
209 #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
210 # define COMPILER_ID "ADSP"
211 #if defined(__VISUALDSPVERSION__)
212  /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
213 # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
214 # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
215 # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
216 #endif
217 
218 #elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
219 # define COMPILER_ID "IAR"
220 
221 #elif defined(__ARMCC_VERSION)
222 # define COMPILER_ID "ARMCC"
223 #if __ARMCC_VERSION >= 1000000
224  /* __ARMCC_VERSION = VRRPPPP */
225  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
226  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
227  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
228 #else
229  /* __ARMCC_VERSION = VRPPPP */
230  # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
231  # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
232  # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
233 #endif
234 
235 
236 #elif defined(SDCC)
237 # define COMPILER_ID "SDCC"
238  /* SDCC = VRP */
239 # define COMPILER_VERSION_MAJOR DEC(SDCC/100)
240 # define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
241 # define COMPILER_VERSION_PATCH DEC(SDCC % 10)
242 
243 #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
244 # define COMPILER_ID "MIPSpro"
245 # if defined(_SGI_COMPILER_VERSION)
246  /* _SGI_COMPILER_VERSION = VRP */
247 # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100)
248 # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10)
249 # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10)
250 # else
251  /* _COMPILER_VERSION = VRP */
252 # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100)
253 # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10)
254 # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10)
255 # endif
256 
257 
258 /* These compilers are either not known or too old to define an
259  identification macro. Try to identify the platform and guess that
260  it is the native compiler. */
261 #elif defined(__sgi)
262 # define COMPILER_ID "MIPSpro"
263 
264 #elif defined(__hpux) || defined(__hpua)
265 # define COMPILER_ID "HP"
266 
267 #else /* unknown compiler */
268 # define COMPILER_ID ""
269 #endif
270 
271 /* Construct the string literal in pieces to prevent the source from
272  getting matched. Store it in a pointer rather than an array
273  because some compilers will just produce instructions to fill the
274  array rather than assigning a pointer to a static array. */
275 char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
276 #ifdef SIMULATE_ID
277 char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
278 #endif
279 
280 #ifdef __QNXNTO__
281 char const* qnxnto = "INFO" ":" "qnxnto[]";
282 #endif
283 
284 #if defined(__CRAYXE) || defined(__CRAYXC)
285 char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
286 #endif
287 
288 #define STRINGIFY_HELPER(X) #X
289 #define STRINGIFY(X) STRINGIFY_HELPER(X)
290 
291 /* Identify known platforms by name. */
292 #if defined(__linux) || defined(__linux__) || defined(linux)
293 # define PLATFORM_ID "Linux"
294 
295 #elif defined(__CYGWIN__)
296 # define PLATFORM_ID "Cygwin"
297 
298 #elif defined(__MINGW32__)
299 # define PLATFORM_ID "MinGW"
300 
301 #elif defined(__APPLE__)
302 # define PLATFORM_ID "Darwin"
303 
304 #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
305 # define PLATFORM_ID "Windows"
306 
307 #elif defined(__FreeBSD__) || defined(__FreeBSD)
308 # define PLATFORM_ID "FreeBSD"
309 
310 #elif defined(__NetBSD__) || defined(__NetBSD)
311 # define PLATFORM_ID "NetBSD"
312 
313 #elif defined(__OpenBSD__) || defined(__OPENBSD)
314 # define PLATFORM_ID "OpenBSD"
315 
316 #elif defined(__sun) || defined(sun)
317 # define PLATFORM_ID "SunOS"
318 
319 #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
320 # define PLATFORM_ID "AIX"
321 
322 #elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
323 # define PLATFORM_ID "IRIX"
324 
325 #elif defined(__hpux) || defined(__hpux__)
326 # define PLATFORM_ID "HP-UX"
327 
328 #elif defined(__HAIKU__)
329 # define PLATFORM_ID "Haiku"
330 
331 #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
332 # define PLATFORM_ID "BeOS"
333 
334 #elif defined(__QNX__) || defined(__QNXNTO__)
335 # define PLATFORM_ID "QNX"
336 
337 #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
338 # define PLATFORM_ID "Tru64"
339 
340 #elif defined(__riscos) || defined(__riscos__)
341 # define PLATFORM_ID "RISCos"
342 
343 #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
344 # define PLATFORM_ID "SINIX"
345 
346 #elif defined(__UNIX_SV__)
347 # define PLATFORM_ID "UNIX_SV"
348 
349 #elif defined(__bsdos__)
350 # define PLATFORM_ID "BSDOS"
351 
352 #elif defined(_MPRAS) || defined(MPRAS)
353 # define PLATFORM_ID "MP-RAS"
354 
355 #elif defined(__osf) || defined(__osf__)
356 # define PLATFORM_ID "OSF1"
357 
358 #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
359 # define PLATFORM_ID "SCO_SV"
360 
361 #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
362 # define PLATFORM_ID "ULTRIX"
363 
364 #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
365 # define PLATFORM_ID "Xenix"
366 
367 #elif defined(__WATCOMC__)
368 # if defined(__LINUX__)
369 # define PLATFORM_ID "Linux"
370 
371 # elif defined(__DOS__)
372 # define PLATFORM_ID "DOS"
373 
374 # elif defined(__OS2__)
375 # define PLATFORM_ID "OS2"
376 
377 # elif defined(__WINDOWS__)
378 # define PLATFORM_ID "Windows3x"
379 
380 # else /* unknown platform */
381 # define PLATFORM_ID ""
382 # endif
383 
384 #else /* unknown platform */
385 # define PLATFORM_ID ""
386 
387 #endif
388 
389 /* For windows compilers MSVC and Intel we can determine
390  the architecture of the compiler being used. This is because
391  the compilers do not have flags that can change the architecture,
392  but rather depend on which compiler is being used
393 */
394 #if defined(_WIN32) && defined(_MSC_VER)
395 # if defined(_M_IA64)
396 # define ARCHITECTURE_ID "IA64"
397 
398 # elif defined(_M_X64) || defined(_M_AMD64)
399 # define ARCHITECTURE_ID "x64"
400 
401 # elif defined(_M_IX86)
402 # define ARCHITECTURE_ID "X86"
403 
404 # elif defined(_M_ARM)
405 # if _M_ARM == 4
406 # define ARCHITECTURE_ID "ARMV4I"
407 # elif _M_ARM == 5
408 # define ARCHITECTURE_ID "ARMV5I"
409 # else
410 # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
411 # endif
412 
413 # elif defined(_M_MIPS)
414 # define ARCHITECTURE_ID "MIPS"
415 
416 # elif defined(_M_SH)
417 # define ARCHITECTURE_ID "SHx"
418 
419 # else /* unknown architecture */
420 # define ARCHITECTURE_ID ""
421 # endif
422 
423 #elif defined(__WATCOMC__)
424 # if defined(_M_I86)
425 # define ARCHITECTURE_ID "I86"
426 
427 # elif defined(_M_IX86)
428 # define ARCHITECTURE_ID "X86"
429 
430 # else /* unknown architecture */
431 # define ARCHITECTURE_ID ""
432 # endif
433 
434 #else
435 # define ARCHITECTURE_ID ""
436 #endif
437 
438 /* Convert integer to decimal digit literals. */
439 #define DEC(n) \
440  ('0' + (((n) / 10000000)%10)), \
441  ('0' + (((n) / 1000000)%10)), \
442  ('0' + (((n) / 100000)%10)), \
443  ('0' + (((n) / 10000)%10)), \
444  ('0' + (((n) / 1000)%10)), \
445  ('0' + (((n) / 100)%10)), \
446  ('0' + (((n) / 10)%10)), \
447  ('0' + ((n) % 10))
448 
449 /* Convert integer to hex digit literals. */
450 #define HEX(n) \
451  ('0' + ((n)>>28 & 0xF)), \
452  ('0' + ((n)>>24 & 0xF)), \
453  ('0' + ((n)>>20 & 0xF)), \
454  ('0' + ((n)>>16 & 0xF)), \
455  ('0' + ((n)>>12 & 0xF)), \
456  ('0' + ((n)>>8 & 0xF)), \
457  ('0' + ((n)>>4 & 0xF)), \
458  ('0' + ((n) & 0xF))
459 
460 /* Construct a string literal encoding the version number components. */
461 #ifdef COMPILER_VERSION_MAJOR
462 char const info_version[] = {
463  'I', 'N', 'F', 'O', ':',
464  'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
465  COMPILER_VERSION_MAJOR,
466 # ifdef COMPILER_VERSION_MINOR
467  '.', COMPILER_VERSION_MINOR,
468 # ifdef COMPILER_VERSION_PATCH
469  '.', COMPILER_VERSION_PATCH,
470 # ifdef COMPILER_VERSION_TWEAK
471  '.', COMPILER_VERSION_TWEAK,
472 # endif
473 # endif
474 # endif
475  ']','\0'};
476 #endif
477 
478 /* Construct a string literal encoding the version number components. */
479 #ifdef SIMULATE_VERSION_MAJOR
480 char const info_simulate_version[] = {
481  'I', 'N', 'F', 'O', ':',
482  's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
483  SIMULATE_VERSION_MAJOR,
484 # ifdef SIMULATE_VERSION_MINOR
485  '.', SIMULATE_VERSION_MINOR,
486 # ifdef SIMULATE_VERSION_PATCH
487  '.', SIMULATE_VERSION_PATCH,
488 # ifdef SIMULATE_VERSION_TWEAK
489  '.', SIMULATE_VERSION_TWEAK,
490 # endif
491 # endif
492 # endif
493  ']','\0'};
494 #endif
495 
496 /* Construct the string literal in pieces to prevent the source from
497  getting matched. Store it in a pointer rather than an array
498  because some compilers will just produce instructions to fill the
499  array rather than assigning a pointer to a static array. */
500 char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
501 char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
502 
503 
504 
505 
506 const char* info_language_dialect_default = "INFO" ":" "dialect_default["
507 #if !defined(__STDC_VERSION__)
508  "90"
509 #elif __STDC_VERSION__ >= 201000L
510  "11"
511 #elif __STDC_VERSION__ >= 199901L
512  "99"
513 #else
514 #endif
515 "]";
516 
517 /*--------------------------------------------------------------------------*/
518 
519 #ifdef ID_VOID_MAIN
520 void main() {}
521 #else
522 int main(int argc, char* argv[])
523 {
524  int require = 0;
525  require += info_compiler[argc];
526  require += info_platform[argc];
527  require += info_arch[argc];
528 #ifdef COMPILER_VERSION_MAJOR
529  require += info_version[argc];
530 #endif
531 #ifdef SIMULATE_ID
532  require += info_simulate[argc];
533 #endif
534 #ifdef SIMULATE_VERSION_MAJOR
535  require += info_simulate_version[argc];
536 #endif
537 #if defined(__CRAYXE) || defined(__CRAYXC)
538  require += info_cray[argc];
539 #endif
540  require += info_language_dialect_default[argc];
541  (void)argv;
542  return require;
543 }
544 #endif
const char * info_language_dialect_default
char const * info_compiler
#define COMPILER_ID
char const * info_arch
#define ARCHITECTURE_ID
char ** argv
int main(int argc, char *argv[])
char const * info_platform
#define PLATFORM_ID