Merged release21-maint changes.
[python/dscho.git] / Modules / getbuildinfo.c
bloba4e997753f861d77fa93c07fc94f1998498f9257
1 #include "pyconfig.h"
3 #ifdef macintosh
4 #include "macbuildno.h"
5 #endif
7 #ifndef DONT_HAVE_STDIO_H
8 #include <stdio.h>
9 #endif
11 #ifndef DATE
12 #ifdef __DATE__
13 #define DATE __DATE__
14 #else
15 #define DATE "xx/xx/xx"
16 #endif
17 #endif
19 #ifndef TIME
20 #ifdef __TIME__
21 #define TIME __TIME__
22 #else
23 #define TIME "xx:xx:xx"
24 #endif
25 #endif
27 #ifndef BUILD
28 #define BUILD 0
29 #endif
32 const char *
33 Py_GetBuildInfo(void)
35 static char buildinfo[50];
36 sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
37 return buildinfo;