home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / py2s152.zip / Modules / getbuildinfo.c < prev    next >
C/C++ Source or Header  |  1999-06-27  |  499b  |  37 lines

  1. #include "config.h"
  2.  
  3. #ifdef macintosh
  4. #include "macbuildno.h"
  5. #endif
  6.  
  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[50];
  34.     sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
  35.     return buildinfo;
  36. }
  37.