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 | ff7e83d | 1999-08-27 20:39:37 +0000 | [diff] [blame] | 7 | #ifndef DONT_HAVE_STDIO_H |
Guido van Rossum | 2fff2e6 | 1997-01-20 18:34:26 +0000 | [diff] [blame] | 8 | #include <stdio.h> |
Guido van Rossum | ff7e83d | 1999-08-27 20:39:37 +0000 | [diff] [blame] | 9 | #endif |
Guido van Rossum | 2fff2e6 | 1997-01-20 18:34:26 +0000 | [diff] [blame] | 10 | |
| 11 | #ifndef DATE |
| 12 | #ifdef __DATE__ |
| 13 | #define DATE __DATE__ |
| 14 | #else |
| 15 | #define DATE "xx/xx/xx" |
| 16 | #endif |
| 17 | #endif |
| 18 | |
| 19 | #ifndef TIME |
| 20 | #ifdef __TIME__ |
| 21 | #define TIME __TIME__ |
| 22 | #else |
| 23 | #define TIME "xx:xx:xx" |
| 24 | #endif |
| 25 | #endif |
| 26 | |
| 27 | #ifndef BUILD |
| 28 | #define BUILD 0 |
| 29 | #endif |
| 30 | |
| 31 | |
| 32 | const char * |
Thomas Wouters | f3f33dc | 2000-07-21 06:00:07 +0000 | [diff] [blame] | 33 | Py_GetBuildInfo(void) |
Guido van Rossum | 2fff2e6 | 1997-01-20 18:34:26 +0000 | [diff] [blame] | 34 | { |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 35 | static char buildinfo[50]; |
| 36 | sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME); |
Guido van Rossum | 2fff2e6 | 1997-01-20 18:34:26 +0000 | [diff] [blame] | 37 | return buildinfo; |
| 38 | } |