summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macgetcompiler.c
blob: 999e74a9c60ada77c23f1650b2721cbe09a4d427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Return a string representing the compiler name */

#include "config.h"

#ifdef THINK_C
#define COMPILER " [THINK C]"
#endif

#ifdef __MWERKS__
#ifdef USE_GUSI
#define HASGUSI " w/GUSI"
#else
#define HASGUSI ""
#endif
#ifdef __powerc
#define COMPILER " [CW PPC" HASGUSI "]"
#else
#ifdef __CFM68K__
#define COMPILER " [CW CFM68K" HASGUSI "]"
#else
#define COMPILER " [CW 68K" HASGUSI "]"
#endif
#endif
#endif

#ifdef MPW
#ifdef __SC__
#define COMPILER " [Symantec MPW]"
#else
#define COMPILER " [Apple MPW]"
#endif
#endif

char *
Py_GetCompiler()
{
	return COMPILER;
}