Guido van Rossum | 2fff2e6 | 1997-01-20 18:34:26 +0000 | [diff] [blame^] | 1 | #include <stdio.h> |
2 | |||||
3 | #ifndef DATE | ||||
4 | #ifdef __DATE__ | ||||
5 | #define DATE __DATE__ | ||||
6 | #else | ||||
7 | #define DATE "xx/xx/xx" | ||||
8 | #endif | ||||
9 | #endif | ||||
10 | |||||
11 | #ifndef TIME | ||||
12 | #ifdef __TIME__ | ||||
13 | #define TIME __TIME__ | ||||
14 | #else | ||||
15 | #define TIME "xx:xx:xx" | ||||
16 | #endif | ||||
17 | #endif | ||||
18 | |||||
19 | #ifndef BUILD | ||||
20 | #define BUILD 0 | ||||
21 | #endif | ||||
22 | |||||
23 | |||||
24 | const char * | ||||
25 | Py_GetBuildInfo() | ||||
26 | { | ||||
27 | static char buildinfo[40]; | ||||
28 | sprintf(buildinfo, "#%d, %.12s, %.8s", BUILD, DATE, TIME); | ||||
29 | return buildinfo; | ||||
30 | } |