cpython/Mac/Python/macgetcompiler.c

37 lines
549 B
C
Raw Normal View History

1995-08-08 14:11:07 +00:00
/* Return a string representing the compiler name */
#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
#ifdef __CFM68K__
1996-02-14 16:02:30 +00:00
#define COMPILER " [CW CFM68K" HASGUSI "]"
#else
1996-02-14 16:02:30 +00:00
#define COMPILER " [CW 68K" HASGUSI "]"
1995-08-08 14:11:07 +00:00
#endif
#endif
#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 *
Py_GetCompiler()
1995-08-08 14:11:07 +00:00
{
return COMPILER;
}