From c4a0bd3ce9fc595ee7bfaa531d90b54545c50aed Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 4 Aug 1995 04:20:48 +0000 Subject: Initial revision --- Python/getcompiler.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Python/getcompiler.c (limited to 'Python/getcompiler.c') diff --git a/Python/getcompiler.c b/Python/getcompiler.c new file mode 100644 index 0000000000..a65789fb07 --- /dev/null +++ b/Python/getcompiler.c @@ -0,0 +1,17 @@ +#ifdef __GNUC__ +#define COMPILER " [GCC " __VERSION__ "]" +#endif + +#ifndef COMPILER +#ifdef __cplusplus +#define COMPILER "[C++]" +#else +#define COMPILER "[C]" +#endif +#endif + +char * +getcompiler() +{ + return COMPILER; +} -- cgit v1.2.1