Staging
v0.8.1
Revision 3fde191f3996e51ecfa24c9c7077562c67ebf445 authored by Terry Jan Reedy on 27 May 2012, 00:43:17 UTC, committed by Terry Jan Reedy on 27 May 2012, 00:43:17 UTC
1 parent cd6b8c6
Raw File
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