Staging
v0.8.1
https://github.com/python/cpython
Revision 1802fdfece4ece5c3f9203100c0214167d386460 authored by Fred Drake on 27 September 2003, 05:38:26 UTC, committed by Fred Drake on 27 September 2003, 05:38:26 UTC
1 parent 540a70f
Raw File
Tip revision: 1802fdfece4ece5c3f9203100c0214167d386460 authored by Fred Drake on 27 September 2003, 05:38:26 UTC
bump release info
Tip revision: 1802fdf
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