cpython/Mac/Python/macgetcompiler.c

37 lines
546 B
C
Raw Normal View History

1995-08-08 11:11:07 -03:00
/* Return a string representing the compiler name */
#ifdef THINK_C
#define COMPILER " [THINK C]"
#endif
#ifdef __MWERKS__
1996-02-14 12:02:30 -04:00
#ifdef USE_GUSI
#define HASGUSI " w/GUSI"
#else
#define HASGUSI ""
#endif
1995-08-08 11:11:07 -03:00
#ifdef __powerc
1996-02-14 12:02:30 -04:00
#define COMPILER " [CW PPC" HASGUSI "]"
1995-08-08 11:11:07 -03:00
#else
#ifdef __CFM68K__
1996-02-14 12:02:30 -04:00
#define COMPILER " [CW CFM68K" HASGUSI "]"
#else
1996-02-14 12:02:30 -04:00
#define COMPILER " [CW 68K" HASGUSI "]"
1995-08-08 11:11:07 -03:00
#endif
#endif
#endif
1995-08-08 11:11:07 -03:00
#ifdef MPW
#ifdef __SC__
#define COMPILER " [Symantec MPW]"
#else
#define COMPILER " [Apple MPW]"
#endif
#endif
char *
getcompiler()
{
return COMPILER;
}