Fix the HTML tarball target to generate the HTML if needed instead of
[python/dscho.git] / Modules / getbuildinfo.c
blob3f9ee525fe5d2a6c0273feca0a8d223c77995cdd
1 #include "config.h"
3 #ifdef macintosh
4 #include "macbuildno.h"
5 #endif
7 #include <stdio.h>
9 #ifndef DATE
10 #ifdef __DATE__
11 #define DATE __DATE__
12 #else
13 #define DATE "xx/xx/xx"
14 #endif
15 #endif
17 #ifndef TIME
18 #ifdef __TIME__
19 #define TIME __TIME__
20 #else
21 #define TIME "xx:xx:xx"
22 #endif
23 #endif
25 #ifndef BUILD
26 #define BUILD 0
27 #endif
30 const char *
31 Py_GetBuildInfo()
33 static char buildinfo[40];
34 sprintf(buildinfo, "#%d, %.12s, %.8s", BUILD, DATE, TIME);
35 return buildinfo;