diff options
author | Guido van Rossum <guido@python.org> | 1995-08-04 04:20:48 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-04 04:20:48 +0000 |
commit | c4a0bd3ce9fc595ee7bfaa531d90b54545c50aed (patch) | |
tree | 9de1df2c43e556b90f9fa08b818015291b82e3a3 /Python/getcompiler.c | |
parent | 74015775fb41f0eb33ca694a86fe49ce884757ae (diff) | |
download | cpython-c4a0bd3ce9fc595ee7bfaa531d90b54545c50aed.tar.gz |
Initial revision
Diffstat (limited to 'Python/getcompiler.c')
-rw-r--r-- | Python/getcompiler.c | 17 |
1 files changed, 17 insertions, 0 deletions
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; +} |