Staging
v0.8.1
https://github.com/python/cpython
Revision b48cfa679e9ed38973980a35a188117165e7c0c9 authored by Jesse Noller on 30 March 2009, 16:19:10 UTC, committed by Jesse Noller on 30 March 2009, 16:19:10 UTC
1 parent e6bab48
Raw File
Tip revision: b48cfa679e9ed38973980a35a188117165e7c0c9 authored by Jesse Noller on 30 March 2009, 16:19:10 UTC
Merge 70717 to 26maint
Tip revision: b48cfa6
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