view Python/getcompiler.c @ 75978:04c19ac9734a 3.2

#14416: add missing LOG_SYSLOG facility to syslog docs.
author R David Murray <rdmurray@bitdance.com>
date Thu, 29 Mar 2012 06:47:35 -0400
parents 4306107b1395
children
line wrap: on
line source


/* 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;
}