Staging
v0.8.1
https://github.com/python/cpython
Revision ccc4ffe7a1e2ae151959446722bf1b58834f5e9f authored by Benjamin Peterson on 15 October 2014, 21:52:42 UTC, committed by Benjamin Peterson on 15 October 2014, 21:52:42 UTC
1 parent 6031fdf
Raw File
Tip revision: ccc4ffe7a1e2ae151959446722bf1b58834f5e9f authored by Benjamin Peterson on 15 October 2014, 21:52:42 UTC
close 3.1
Tip revision: ccc4ffe
getcompiler.c

/* Return the compiler identification, if possible. */

#include "Python.h"

#ifndef COMPILER

#ifdef __GNUC__
#define COMPILER "\n[GCC " __VERSION__ "]"
#endif

#endif /* !COMPILER */

#ifndef COMPILER

#ifdef __cplusplus
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif

#endif /* !COMPILER */

const char *
Py_GetCompiler(void)
{
	return COMPILER;
}
back to top