summaryrefslogtreecommitdiff
path: root/Python/getcompiler.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-28 22:30:17 +0000
committerGuido van Rossum <guido@python.org>1996-05-28 22:30:17 +0000
commitf69f0eee6531de7137142ffe7d54b9189128bd03 (patch)
tree9401a3de7875e684f38b6645e89a1c12e9d87929 /Python/getcompiler.c
parent14e0895bf961634f91390d41c0d61baa26133158 (diff)
downloadcpython-f69f0eee6531de7137142ffe7d54b9189128bd03.tar.gz
grand renaming; added copyright to some files
Diffstat (limited to 'Python/getcompiler.c')
-rw-r--r--Python/getcompiler.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/Python/getcompiler.c b/Python/getcompiler.c
index 0816717958..56ff4867b9 100644
--- a/Python/getcompiler.c
+++ b/Python/getcompiler.c
@@ -22,26 +22,30 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+/* Return the compiler identification, if possible. */
+
+#include "Python.h"
#ifndef COMPILER
+
#ifdef __GNUC__
#define COMPILER " [GCC " __VERSION__ "]"
#endif
+
#endif /* !COMPILER */
#ifndef COMPILER
+
#ifdef __cplusplus
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif
+
#endif /* !COMPILER */
char *
-getcompiler()
+Py_GetCompiler()
{
return COMPILER;
}