1995-08-08 14:11:07 +00:00
|
|
|
/* Return a string representing the compiler name */
|
|
|
|
|
1996-08-19 11:36:59 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
1995-08-08 14:11:07 +00:00
|
|
|
#ifdef THINK_C
|
|
|
|
#define COMPILER " [THINK C]"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __MWERKS__
|
1996-02-14 16:02:30 +00:00
|
|
|
#ifdef USE_GUSI
|
|
|
|
#define HASGUSI " w/GUSI"
|
|
|
|
#else
|
|
|
|
#define HASGUSI ""
|
|
|
|
#endif
|
1995-08-08 14:11:07 +00:00
|
|
|
#ifdef __powerc
|
1996-02-14 16:02:30 +00:00
|
|
|
#define COMPILER " [CW PPC" HASGUSI "]"
|
1995-08-08 14:11:07 +00:00
|
|
|
#else
|
1995-08-14 12:30:15 +00:00
|
|
|
#ifdef __CFM68K__
|
1996-02-14 16:02:30 +00:00
|
|
|
#define COMPILER " [CW CFM68K" HASGUSI "]"
|
1995-08-14 12:30:15 +00:00
|
|
|
#else
|
1996-02-14 16:02:30 +00:00
|
|
|
#define COMPILER " [CW 68K" HASGUSI "]"
|
1995-08-08 14:11:07 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
1995-08-14 12:30:15 +00:00
|
|
|
#endif
|
1995-08-08 14:11:07 +00:00
|
|
|
|
|
|
|
#ifdef MPW
|
|
|
|
#ifdef __SC__
|
|
|
|
#define COMPILER " [Symantec MPW]"
|
|
|
|
#else
|
|
|
|
#define COMPILER " [Apple MPW]"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
char *
|
1996-07-10 15:48:25 +00:00
|
|
|
Py_GetCompiler()
|
1995-08-08 14:11:07 +00:00
|
|
|
{
|
|
|
|
return COMPILER;
|
|
|
|
}
|