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 |
Jack Jansen | f717ac2 | 1995-08-14 12:30:15 +0000 | [diff] [blame] | 11 | #ifdef __CFM68K__ |
| 12 | #define COMPILER " [CW CFM68K]" |
| 13 | #else |
Guido van Rossum | 6e39e53 | 1995-08-08 14:11:07 +0000 | [diff] [blame] | 14 | #define COMPILER " [CW 68K]" |
| 15 | #endif |
| 16 | #endif |
Jack Jansen | f717ac2 | 1995-08-14 12:30:15 +0000 | [diff] [blame] | 17 | #endif |
Guido van Rossum | 6e39e53 | 1995-08-08 14:11:07 +0000 | [diff] [blame] | 18 | |
| 19 | #ifdef MPW |
| 20 | #ifdef __SC__ |
| 21 | #define COMPILER " [Symantec MPW]" |
| 22 | #else |
| 23 | #define COMPILER " [Apple MPW]" |
| 24 | #endif |
| 25 | #endif |
| 26 | |
| 27 | char * |
| 28 | getcompiler() |
| 29 | { |
| 30 | return COMPILER; |
| 31 | } |