view Python/getcompiler.c @ 38661:3581d1dc4253 legacy-trunk

Bug #1502750: Fix getargs "i" format to use LONG_MIN and LONG_MAX for bounds checking.
author Georg Brandl <georg@python.org>
date Thu, 08 Jun 2006 12:45:01 +0000
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;
}