https://github.com/python/cpython
Raw File
Tip revision: cc21417408524d0e829501c55f46b30ca93540b4 authored by Benjamin Peterson on 13 November 2010, 17:33:04 UTC
2.7.1rc1 bump
Tip revision: cc21417
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