view Python/getcompiler.c @ 83829:0648e7fe7a72

Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
author Richard Oudkerk <shibturn@gmail.com>
date Sat, 18 May 2013 17:35:19 +0100
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;
}