Path: blob/main/astro/luna/files/patch-pyramid.h
16461 views
--- pyramid.h.orig 2016-07-26 13:07:24 UTC1+++ pyramid.h2@@ -14,13 +14,16 @@3# include <dos.h>4# include <stdlib.h>5# include <string.h>6-# define LASCTIME (30)7+# define LASCTIME (26)89#else /* UNIX */10-# include <sys/time.h>11+/*# include <sys/time.h>*/12+# include <time.h>13typedef 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 */2021typedef long ABDATE;22@@ -52,15 +55,6 @@ typedef long ABDATE;23# if defined(MSDOS)24extern char *Asctime(struct tm *tmp);25extern char *capitalize(char *chp);26-# define Tolower(cc) tolower(cc)27-# define Toupper(cc) toupper(cc)28-# else /* MSDOS */29-# define Asctime asctime30-/*# define Tolower(cc) \31-/* (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))32-/*# define Toupper(cc) \33-/* (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))34- */35# endif /* ANSI and MSDOS */3637#else /* ANSI */38@@ -69,3 +63,16 @@ typedef long ABDATE;39extern void tzconv();40extern void tomorrow();41#endif /* ANSI or not */42+43+44+#if defined(MSDOS)45+# define Tolower(cc) tolower(cc)46+# define Toupper(cc) toupper(cc)47+48+#else49+# define Asctime asctime50+# define Tolower(cc) \51+ (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))52+# define Toupper(cc) \53+ (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))54+#endif /* MSDOS */555657