Staging
v0.8.1
https://github.com/python/cpython
Revision 56b2c92abbc0be03d8a78b238c039fc2c82e92a2 authored by Georg Brandl on 05 March 2011, 13:55:19 UTC, committed by Georg Brandl on 05 March 2011, 13:55:19 UTC
1 parent a7ce71b
Raw File
Tip revision: 56b2c92abbc0be03d8a78b238c039fc2c82e92a2 authored by Georg Brandl on 05 March 2011, 13:55:19 UTC
Fix tag references in 2.2 branch.
Tip revision: 56b2c92
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