Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 69c0db5050f623e8895b72dfe970392b1f9a0e2e authored by Ned Deily on 21 March 2017, 06:32:38 UTC
Update docs and patchlevel for 3.6.1 final
Tip revision: 69c0db5
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