summaryrefslogtreecommitdiffstats
path: root/Python/getcompiler.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-04 04:20:48 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-04 04:20:48 (GMT)
commit667d704997f26a1a22f4e981bbb3c2f8399cfc41 (patch)
tree245b91f0451e57625f921f02f6f0d3dfb85d59a0 /Python/getcompiler.c
parent37ba0bc50be14b6f2148ebb7f824c8e77f001488 (diff)
downloadcpython-667d704997f26a1a22f4e981bbb3c2f8399cfc41.zip
cpython-667d704997f26a1a22f4e981bbb3c2f8399cfc41.tar.gz
cpython-667d704997f26a1a22f4e981bbb3c2f8399cfc41.tar.bz2
Initial revision
Diffstat (limited to 'Python/getcompiler.c')
-rw-r--r--Python/getcompiler.c17
1 files changed, 17 insertions, 0 deletions
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;
+}