Staging
v0.8.1
https://github.com/python/cpython
Revision f7e571432ab60dfdef9de41218e8612c49a13be0 authored by Jack Jansen on 08 September 2001, 21:38:26 UTC, committed by Jack Jansen on 08 September 2001, 21:38:26 UTC
1 parent caef93d
Raw File
Tip revision: f7e571432ab60dfdef9de41218e8612c49a13be0 authored by Jack Jansen on 08 September 2001, 21:38:26 UTC
Final tweaks for 2.2a3 distribution.
Tip revision: f7e5714
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