blob: fc19e4cd359bf48115d5fd5fad6f58bbe0fec78b [file] [log] [blame]
Guido van Rossumf857a6b1996-05-23 22:50:26 +00001/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00002Copyright (c) 2000, BeOpen.com.
3Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5All rights reserved.
Guido van Rossumf857a6b1996-05-23 22:50:26 +00006
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007See the file "Misc/COPYRIGHT" for information on usage and
8redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossumf857a6b1996-05-23 22:50:26 +00009******************************************************************/
10
Guido van Rossum582646a1996-05-28 22:30:17 +000011/* Return the compiler identification, if possible. */
12
13#include "Python.h"
Guido van Rossumf857a6b1996-05-23 22:50:26 +000014
15#ifndef COMPILER
Guido van Rossum582646a1996-05-28 22:30:17 +000016
Guido van Rossum667d7041995-08-04 04:20:48 +000017#ifdef __GNUC__
18#define COMPILER " [GCC " __VERSION__ "]"
19#endif
Guido van Rossum582646a1996-05-28 22:30:17 +000020
Guido van Rossumf857a6b1996-05-23 22:50:26 +000021#endif /* !COMPILER */
Guido van Rossum667d7041995-08-04 04:20:48 +000022
23#ifndef COMPILER
Guido van Rossum582646a1996-05-28 22:30:17 +000024
Guido van Rossum667d7041995-08-04 04:20:48 +000025#ifdef __cplusplus
26#define COMPILER "[C++]"
27#else
28#define COMPILER "[C]"
29#endif
Guido van Rossum582646a1996-05-28 22:30:17 +000030
Guido van Rossumf857a6b1996-05-23 22:50:26 +000031#endif /* !COMPILER */
Guido van Rossum667d7041995-08-04 04:20:48 +000032
Guido van Rossum8fb26ed1997-07-19 19:48:41 +000033const char *
Thomas Woutersf70ef4f2000-07-22 18:47:25 +000034Py_GetCompiler(void)
Guido van Rossum667d7041995-08-04 04:20:48 +000035{
36 return COMPILER;
37}