patch-pyramid_h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. $OpenBSD: patch-pyramid_h,v 1.1.1.1 2002/04/27 15:23:58 wcobb Exp $
  2. --- pyramid.h.orig Fri Nov 9 11:51:45 2001
  3. +++ pyramid.h Fri Nov 9 11:52:58 2001
  4. @@ -14,13 +14,15 @@
  5. # include <dos.h>
  6. # include <stdlib.h>
  7. # include <string.h>
  8. -# define LASCTIME (30)
  9. +# define LASCTIME (26)
  10. #else /* UNIX */
  11. -# include <sys/time.h>
  12. +# include <time.h>
  13. typedef time_t Time_t;
  14. # include <memory.h>
  15. -# define LASCTIME (30)
  16. +# define LASCTIME (26)
  17. + extern char *asctime();
  18. + extern char *getenv();
  19. #endif /* MSDOS or not */
  20. typedef long ABDATE;
  21. @@ -52,15 +54,6 @@ typedef long ABDATE;
  22. # if defined(MSDOS)
  23. extern char *Asctime(struct tm *tmp);
  24. extern char *capitalize(char *chp);
  25. -# define Tolower(cc) tolower(cc)
  26. -# define Toupper(cc) toupper(cc)
  27. -# else /* MSDOS */
  28. -# define Asctime asctime
  29. -/*# define Tolower(cc) \
  30. -/* (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))
  31. -/*# define Toupper(cc) \
  32. -/* (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))
  33. - */
  34. # endif /* ANSI and MSDOS */
  35. #else /* ANSI */