Staging
v0.5.1
https://github.com/python/cpython
Revision cabac0ac3accbdfab390896aa77e3d8766ec947f authored by Neal Norwitz on 30 August 2007, 05:35:41 UTC, committed by Neal Norwitz on 30 August 2007, 05:35:41 UTC
This will hopefully fix the problem on a Windows buildbot with test_sundry.
1 parent 0c3842f
Raw File
Tip revision: cabac0ac3accbdfab390896aa77e3d8766ec947f authored by Neal Norwitz on 30 August 2007, 05:35:41 UTC
Stop using the find function on the string module, use the string method.
Tip revision: cabac0a
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