Guido van Rossum | 6e39e53 | 1995-08-08 14:11:07 +0000 | [diff] [blame] | 1 | /* Return a string representing the compiler name */ |
2 | |||||
3 | #ifdef THINK_C | ||||
4 | #define COMPILER " [THINK C]" | ||||
5 | #endif | ||||
6 | |||||
7 | #ifdef __MWERKS__ | ||||
8 | #ifdef __powerc | ||||
9 | #define COMPILER " [CW PPC]" | ||||
10 | #else | ||||
11 | #define COMPILER " [CW 68K]" | ||||
12 | #endif | ||||
13 | #endif | ||||
14 | |||||
15 | #ifdef MPW | ||||
16 | #ifdef __SC__ | ||||
17 | #define COMPILER " [Symantec MPW]" | ||||
18 | #else | ||||
19 | #define COMPILER " [Apple MPW]" | ||||
20 | #endif | ||||
21 | #endif | ||||
22 | |||||
23 | char * | ||||
24 | getcompiler() | ||||
25 | { | ||||
26 | return COMPILER; | ||||
27 | } |