From 57c33af90e815c311bc6e70a49f3d540f12fda3a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 13 Feb 1995 17:10:11 +0000 Subject: tack compiler name/version to version string if known --- Modules/config.c.in | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/Modules/config.c.in b/Modules/config.c.in index 0c2f114..9e0f34a 100644 --- a/Modules/config.c.in +++ b/Modules/config.c.in @@ -107,19 +107,47 @@ getargcargv(argc,argv) version number (from patchlevel.h), and the current date (if known to the compiler, else a manually inserted date). */ -#define VERSION "%s (%s)" +#define VERSION "%s (%s)%s" #ifdef __DATE__ #define DATE __DATE__ #else -#define DATE "Aug 17 1994" +#define DATE "Feb 13 1995" +#endif + +#ifdef THINK_C +#define COMPILER " [THINK C]" +#endif + +#ifdef __MWERKS__ +#ifdef __powerc +#define COMPILER " [CW PPC]" +#else +#define COMPILER " [CW 68K]" +#endif +#endif + +#ifdef MPW +#ifdef __SC__ +#define COMPILER " [Symantec MPW]" +#else +#define COMPILER " [Apple MPW]" +#endif +#endif + +#ifdef __GNUC__ +#define COMPILER " [GCC " ##__VERSION__ "]" +#endif + +#ifndef COMPILER +#define COMPILER "" #endif char * getversion() { static char version[80]; - sprintf(version, VERSION, PATCHLEVEL, DATE); + sprintf(version, VERSION, PATCHLEVEL, DATE, COMPILER); return version; } -- cgit v0.12