Apparently the code to forestall Tk eating events was too aggressive (Tk user input...
[python/dscho.git] / Modules / getbuildinfo.c
blob8c710f8fd07224d06f1c376706d707be956be1fa
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(void)
35 static char buildinfo[50];
36 sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
37 return buildinfo;