Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
26 | pmbaty | 1 | /* ACC -- Automatic Compiler Configuration |
2 | |||
3 | Copyright (C) 1996-2004 Markus Franz Xaver Johannes Oberhumer |
||
4 | All Rights Reserved. |
||
5 | |||
6 | This software is a copyrighted work licensed under the terms of |
||
7 | the GNU General Public License. Please consult the file "ACC_LICENSE" |
||
8 | for details. |
||
9 | |||
10 | Markus F.X.J. Oberhumer |
||
11 | <markus@oberhumer.com> |
||
12 | http://www.oberhumer.com/ |
||
13 | */ |
||
14 | |||
15 | |||
16 | /* |
||
17 | * C/C++ Compiler - exactly one of: |
||
18 | * |
||
19 | * ACC_CC_UNKNOWN [default] |
||
20 | * ACC_CC_GNUC |
||
21 | * ... |
||
22 | */ |
||
23 | |||
24 | #if defined(CIL) && defined(_GNUCC) && defined(__GNUC__) |
||
25 | # define ACC_CC_CILLY 1 |
||
26 | # define ACC_INFO_CC "Cilly" |
||
27 | # define ACC_INFO_CCVER "unknown" |
||
28 | #elif defined(__INTEL_COMPILER) |
||
29 | # define ACC_CC_INTELC 1 |
||
30 | # define ACC_INFO_CC "Intel C" |
||
31 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__INTEL_COMPILER) |
||
32 | #elif defined(__POCC__) |
||
33 | # define ACC_CC_PELLESC 1 |
||
34 | # define ACC_INFO_CC "Pelles C" |
||
35 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__POCC__) |
||
36 | #elif defined(__GNUC__) && defined(__VERSION__) |
||
37 | # if defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__) |
||
38 | # define ACC_CC_GNUC (__GNUC__ * 0x10000L + __GNUC_MINOR__ * 0x100 + __GNUC_PATCHLEVEL__) |
||
39 | # elif defined(__GNUC_MINOR__) |
||
40 | # define ACC_CC_GNUC (__GNUC__ * 0x10000L + __GNUC_MINOR__ * 0x100) |
||
41 | # else |
||
42 | # define ACC_CC_GNUC (__GNUC__ * 0x10000L) |
||
43 | # endif |
||
44 | # define ACC_INFO_CC "gcc" |
||
45 | # define ACC_INFO_CCVER __VERSION__ |
||
46 | #elif defined(__AZTEC_C__) |
||
47 | # define ACC_CC_AZTECC 1 |
||
48 | # define ACC_INFO_CC "Aztec C" |
||
49 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__AZTEC_C__) |
||
50 | #elif defined(__BORLANDC__) |
||
51 | # define ACC_CC_BORLANDC 1 |
||
52 | # define ACC_INFO_CC "Borland C" |
||
53 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__BORLANDC__) |
||
54 | #elif defined(__DMC__) |
||
55 | # define ACC_CC_DMC 1 |
||
56 | # define ACC_INFO_CC "Digital Mars C" |
||
57 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__DMC__) |
||
58 | #elif defined(__DECC) |
||
59 | # define ACC_CC_DECC 1 |
||
60 | # define ACC_INFO_CC "DEC C" |
||
61 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__DECC) |
||
62 | #elif defined(__HIGHC__) |
||
63 | # define ACC_CC_HIGHC 1 |
||
64 | # define ACC_INFO_CC "MetaWare High C" |
||
65 | # define ACC_INFO_CCVER "unknown" |
||
66 | #elif defined(__IBMC__) |
||
67 | # define ACC_CC_IBMC 1 |
||
68 | # define ACC_INFO_CC "IBM C" |
||
69 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__IBMC__) |
||
70 | #elif defined(__KEIL__) && defined(__C166__) |
||
71 | # define ACC_CC_KEILC 1 |
||
72 | # define ACC_INFO_CC "Keil C" |
||
73 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__C166__) |
||
74 | #elif defined(__LCC__) |
||
75 | # define ACC_CC_LCC 1 |
||
76 | # define ACC_INFO_CC "lcc" |
||
77 | # define ACC_INFO_CCVER "unknown" |
||
78 | #elif defined(_MSC_VER) |
||
79 | # define ACC_CC_MSC 1 |
||
80 | # define ACC_INFO_CC "Microsoft C" |
||
81 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(_MSC_VER) |
||
82 | #elif defined(__MWERKS__) |
||
83 | # define ACC_CC_MWERKS 1 |
||
84 | # define ACC_INFO_CC "Metrowerks C" |
||
85 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__MWERKS__) |
||
86 | #elif (defined(__NDPC__) || defined(__NDPX__)) && defined(__i386) |
||
87 | # define ACC_CC_NDPC 1 |
||
88 | # define ACC_INFO_CC "Microway NDP C" |
||
89 | # define ACC_INFO_CCVER "unknown" |
||
90 | #elif defined(__PACIFIC__) |
||
91 | # define ACC_CC_PACIFICC 1 |
||
92 | # define ACC_INFO_CC "Pacific C" |
||
93 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__PACIFIC__) |
||
94 | #elif defined(__PGI) && (defined(__linux__) || defined(__WIN32__)) |
||
95 | # define ACC_CC_PGI 1 |
||
96 | # define ACC_INFO_CC "Portland Group PGI C" |
||
97 | # define ACC_INFO_CCVER "unknown" |
||
98 | #elif defined(__PUREC__) |
||
99 | # define ACC_CC_PUREC 1 |
||
100 | # define ACC_INFO_CC "Pure C" |
||
101 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__PUREC__) |
||
102 | #elif defined(__SC__) |
||
103 | # define ACC_CC_SYMANTECC 1 |
||
104 | # define ACC_INFO_CC "Symantec C" |
||
105 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__SC__) |
||
106 | #elif defined(__SUNPRO_C) |
||
107 | # define ACC_CC_SUNPROC 1 |
||
108 | # define ACC_INFO_CC "Sun C" |
||
109 | # define ACC_INFO_CCVER "unknown" |
||
110 | #elif defined(__TINYC__) |
||
111 | # define ACC_CC_TINYC 1 |
||
112 | # define ACC_INFO_CC "Tiny C" |
||
113 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__TINYC__) |
||
114 | #elif defined(__TSC__) |
||
115 | # define ACC_CC_TOPSPEEDC 1 |
||
116 | # define ACC_INFO_CC "TopSpeed C" |
||
117 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__TSC__) |
||
118 | #elif defined(__WATCOMC__) |
||
119 | # define ACC_CC_WATCOMC 1 |
||
120 | # define ACC_INFO_CC "Watcom C" |
||
121 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__WATCOMC__) |
||
122 | #elif defined(__TURBOC__) |
||
123 | # define ACC_CC_TURBOC 1 |
||
124 | # define ACC_INFO_CC "Turbo C" |
||
125 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__TURBOC__) |
||
126 | #elif defined(__ZTC__) |
||
127 | # define ACC_CC_ZORTECHC 1 |
||
128 | # define ACC_INFO_CC "Zortech C" |
||
129 | # if (__ZTC__ == 0x310) |
||
130 | # define ACC_INFO_CCVER "0x310" |
||
131 | # else |
||
132 | # define ACC_INFO_CCVER ACC_CPP_MACRO_EXPAND(__ZTC__) |
||
133 | # endif |
||
134 | #else |
||
135 | # define ACC_CC_UNKNOWN 1 |
||
136 | # define ACC_INFO_CC "unknown" |
||
137 | # define ACC_INFO_CCVER "unknown" |
||
138 | #endif |
||
139 | |||
140 | |||
141 | /* |
||
142 | vi:ts=4:et |
||
143 | */ |