commit | 667d704997f26a1a22f4e981bbb3c2f8399cfc41 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 04 04:20:48 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 04 04:20:48 1995 +0000 |
tree | 245b91f0451e57625f921f02f6f0d3dfb85d59a0 | |
parent | 37ba0bc50be14b6f2148ebb7f824c8e77f001488 [diff] [blame] |
Initial revision
diff --git a/Python/getcompiler.c b/Python/getcompiler.c new file mode 100644 index 0000000..a65789f --- /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; +}