Staging
v0.8.1
https://github.com/python/cpython
Revision e0fbe5feee4f9c00f09eb9659c2182183036261a authored by Ned Deily on 04 March 2017, 17:25:04 UTC, committed by Ned Deily on 04 March 2017, 17:25:04 UTC
1 parent cefca3d
Raw File
Tip revision: e0fbe5feee4f9c00f09eb9659c2182183036261a authored by Ned Deily on 04 March 2017, 17:25:04 UTC
Update docs and patchlevel for 3.6.1rc1.
Tip revision: e0fbe5f
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