Staging
v0.5.1
https://github.com/python/cpython
Revision 42fe1a2ff864c3f3491e6dab38b24e27db304633 authored by Benjamin Peterson on 17 November 2008, 23:35:24 UTC, committed by Benjamin Peterson on 17 November 2008, 23:35:24 UTC
1 parent a8629ce
Raw File
Tip revision: 42fe1a2ff864c3f3491e6dab38b24e27db304633 authored by Benjamin Peterson on 17 November 2008, 23:35:24 UTC
backport r67246 from the trunk
Tip revision: 42fe1a2
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