Staging
v0.5.1
Revision d858df20d0d82eeefbdbe9982cfd68207a0cd446 authored by Benjamin Peterson on 11 June 2011, 14:58:58 UTC, committed by Benjamin Peterson on 11 June 2011, 14:58:58 UTC
1 parent 1df0f21
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