Staging
v0.5.1
https://github.com/python/cpython
Revision 59e387eb4034dcc007b0b30eedea4e5fcbc92594 authored by Éric Araujo on 26 July 2011, 14:53:17 UTC, committed by Éric Araujo on 26 July 2011, 14:53:17 UTC
1 parent 7c12bae
Raw File
Tip revision: 59e387eb4034dcc007b0b30eedea4e5fcbc92594 authored by Éric Araujo on 26 July 2011, 14:53:17 UTC
Fix “anyways” (following R. David Murray in 4d5a546b6186)
Tip revision: 59e387e
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