Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 7e16af499b92def6fc4ab1bbcecd2c055a38de29 authored by Ned Deily on 10 October 2016, 20:09:08 UTC
Version bump for 3.6.0b2
Tip revision: 7e16af4
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