| Guido van Rossum | 667d704 | 1995-08-04 04:20:48 +0000 | [diff] [blame] | 1 | #ifdef __GNUC__ |
| 2 | #define COMPILER " [GCC " __VERSION__ "]" | ||||
| 3 | #endif | ||||
| 4 | |||||
| 5 | #ifndef COMPILER | ||||
| 6 | #ifdef __cplusplus | ||||
| 7 | #define COMPILER "[C++]" | ||||
| 8 | #else | ||||
| 9 | #define COMPILER "[C]" | ||||
| 10 | #endif | ||||
| 11 | #endif | ||||
| 12 | |||||
| 13 | char * | ||||
| 14 | getcompiler() | ||||
| 15 | { | ||||
| 16 | return COMPILER; | ||||
| 17 | } | ||||