summaryrefslogtreecommitdiffstats
path: root/Python/getversion.c
blob: 1f2acccebdd1701a12a0275780ad4f11e910044d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Return the full version string. */

#include "patchlevel.h"

#define VERSION "%s (%s) %s"

#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "August 1 1995"
#endif

extern const char *getcompiler();

const char *
getversion()
{
	static char version[80];
	sprintf(version, VERSION, PATCHLEVEL, DATE, getcompiler());
	return version;
}