Staging
v0.5.1
https://github.com/python/cpython
Revision e6c6f69ac935d045034712e53ee64fe46434e460 authored by Larry Hastings on 25 August 2015, 03:31:53 UTC, committed by Larry Hastings on 25 August 2015, 03:31:53 UTC
1 parent db1ccc6
Raw File
Tip revision: e6c6f69ac935d045034712e53ee64fe46434e460 authored by Larry Hastings on 25 August 2015, 03:31:53 UTC
Version bump for Python 3.5.0rc2.
Tip revision: e6c6f69
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