The 0.5 release happened on 2/15, not on 2/14. :-)
[python/dscho.git] / Modules / getbuildinfo.c
blob35da3f7ad6315e4f75a273a7023a3dc32dfb2635
1 #include "config.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()
35 static char buildinfo[50];
36 sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
37 return buildinfo;