blob: 8c710f8fd07224d06f1c376706d707be956be1fa [file] [log] [blame]
Guido van Rossum49bff651997-05-20 22:40:26 +00001#include "config.h"
2
Guido van Rossum5bd919b1997-10-08 15:26:56 +00003#ifdef macintosh
4#include "macbuildno.h"
5#endif
6
Guido van Rossumff7e83d1999-08-27 20:39:37 +00007#ifndef DONT_HAVE_STDIO_H
Guido van Rossum2fff2e61997-01-20 18:34:26 +00008#include <stdio.h>
Guido van Rossumff7e83d1999-08-27 20:39:37 +00009#endif
Guido van Rossum2fff2e61997-01-20 18:34:26 +000010
11#ifndef DATE
12#ifdef __DATE__
13#define DATE __DATE__
14#else
15#define DATE "xx/xx/xx"
16#endif
17#endif
18
19#ifndef TIME
20#ifdef __TIME__
21#define TIME __TIME__
22#else
23#define TIME "xx:xx:xx"
24#endif
25#endif
26
27#ifndef BUILD
28#define BUILD 0
29#endif
30
31
32const char *
Thomas Woutersf3f33dc2000-07-21 06:00:07 +000033Py_GetBuildInfo(void)
Guido van Rossum2fff2e61997-01-20 18:34:26 +000034{
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000035 static char buildinfo[50];
36 sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
Guido van Rossum2fff2e61997-01-20 18:34:26 +000037 return buildinfo;
38}