blob: 347b8d20b617cc4f1f979097bf196f31ed2d8be8 [file] [log] [blame]
Jack Jansen42218ce1997-01-31 16:15:11 +00001/***********************************************************
2Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
3The Netherlands.
4
5 All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the names of Stichting Mathematisch
12Centrum or CWI or Corporation for National Research Initiatives or
13CNRI not be used in advertising or publicity pertaining to
14distribution of the software without specific, written prior
15permission.
16
17While CWI is the initial source for this software, a modified version
18is made available by the Corporation for National Research Initiatives
19(CNRI) at the Internet address ftp://ftp.python.org.
20
21STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28PERFORMANCE OF THIS SOFTWARE.
29
30******************************************************************/
31
Guido van Rossum6e39e531995-08-08 14:11:07 +000032/* Return a string representing the compiler name */
33
Jack Jansen007fa821996-08-19 11:36:59 +000034#include "config.h"
35
Guido van Rossum6e39e531995-08-08 14:11:07 +000036#ifdef THINK_C
37#define COMPILER " [THINK C]"
38#endif
39
40#ifdef __MWERKS__
Jack Jansenc743c8d1996-02-14 16:02:30 +000041#ifdef USE_GUSI
42#define HASGUSI " w/GUSI"
43#else
44#define HASGUSI ""
45#endif
Jack Jansen08c3be31997-04-08 15:27:00 +000046#ifdef USE_MSL
47#define HASMSL " w/MSL"
48#else
49#define HASMSL ""
50#endif
Guido van Rossum6e39e531995-08-08 14:11:07 +000051#ifdef __powerc
Jack Jansen08c3be31997-04-08 15:27:00 +000052#define COMPILER " [CW PPC" HASGUSI HASMSL "]"
Guido van Rossum6e39e531995-08-08 14:11:07 +000053#else
Jack Jansenf717ac21995-08-14 12:30:15 +000054#ifdef __CFM68K__
Jack Jansen08c3be31997-04-08 15:27:00 +000055#define COMPILER " [CW CFM68K" HASGUSI HASMSL "]"
Jack Jansenf717ac21995-08-14 12:30:15 +000056#else
Jack Jansen08c3be31997-04-08 15:27:00 +000057#define COMPILER " [CW 68K" HASGUSI HASMSL "]"
Guido van Rossum6e39e531995-08-08 14:11:07 +000058#endif
59#endif
Jack Jansenf717ac21995-08-14 12:30:15 +000060#endif
Guido van Rossum6e39e531995-08-08 14:11:07 +000061
62#ifdef MPW
63#ifdef __SC__
64#define COMPILER " [Symantec MPW]"
65#else
66#define COMPILER " [Apple MPW]"
67#endif
68#endif
69
70char *
Jack Jansena547dca1996-07-10 15:48:25 +000071Py_GetCompiler()
Guido van Rossum6e39e531995-08-08 14:11:07 +000072{
73 return COMPILER;
74}