blob: 35da3f7ad6315e4f75a273a7023a3dc32dfb2635 [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 *
33Py_GetBuildInfo()
34{
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}