Staging
v0.5.1
https://github.com/python/cpython
Revision 777374e8db9902baa844a82eeefd2ab0d5a3e95b authored by Greg Ward on 09 March 2005, 00:55:19 UTC, committed by Greg Ward on 09 March 2005, 00:55:19 UTC
1 parent ad80c6b
Raw File
Tip revision: 777374e8db9902baa844a82eeefd2ab0d5a3e95b authored by Greg Ward on 09 March 2005, 00:55:19 UTC
SF #818006: revert addition of 'closed', 'mode', and 'name' attributes
Tip revision: 777374e
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