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