Staging
v0.5.1
https://github.com/python/cpython
Revision 514afeb65ca07823431629d4eae470a833ffe0e3 authored by Michael Foord on 23 November 2013, 13:30:03 UTC, committed by Michael Foord on 23 November 2013, 13:30:03 UTC
2 parent s e28bb15 + 468ec34
Raw File
Tip revision: 514afeb65ca07823431629d4eae470a833ffe0e3 authored by Michael Foord on 23 November 2013, 13:30:03 UTC
Merge
Tip revision: 514afeb
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