Staging
v0.8.1
Revision 5405a0b3d352c0c106b92a86e963bde044bb1484 authored by Éric Araujo on 05 February 2011, 16:03:12 UTC, committed by Éric Araujo on 05 February 2011, 16:03:12 UTC
1 parent bd866e9
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