mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
111db80c3d
Divide patch-aa into patch-a[b-g] PR: 16865 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp> No response from: maintainer
56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
--- pyramid.h.orig Mon May 25 01:24:12 1992
|
|
+++ pyramid.h Mon Feb 21 02:23:55 2000
|
|
@@ -14,13 +14,16 @@
|
|
# include <dos.h>
|
|
# include <stdlib.h>
|
|
# include <string.h>
|
|
-# define LASCTIME (30)
|
|
+# define LASCTIME (26)
|
|
|
|
#else /* UNIX */
|
|
-# include <sys/time.h>
|
|
+/*# include <sys/time.h>*/
|
|
+# include <time.h>
|
|
typedef time_t Time_t;
|
|
# include <memory.h>
|
|
-# define LASCTIME (30)
|
|
+# define LASCTIME (26)
|
|
+ extern char *asctime();
|
|
+ extern char *getenv();
|
|
#endif /* MSDOS or not */
|
|
|
|
typedef long ABDATE;
|
|
@@ -52,15 +55,6 @@
|
|
# if defined(MSDOS)
|
|
extern char *Asctime(struct tm *tmp);
|
|
extern char *capitalize(char *chp);
|
|
-# define Tolower(cc) tolower(cc)
|
|
-# define Toupper(cc) toupper(cc)
|
|
-# else /* MSDOS */
|
|
-# define Asctime asctime
|
|
-/*# define Tolower(cc) \
|
|
-/* (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))
|
|
-/*# define Toupper(cc) \
|
|
-/* (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))
|
|
- */
|
|
# endif /* ANSI and MSDOS */
|
|
|
|
#else /* ANSI */
|
|
@@ -69,3 +63,16 @@
|
|
extern void tzconv();
|
|
extern void tomorrow();
|
|
#endif /* ANSI or not */
|
|
+
|
|
+
|
|
+#if defined(MSDOS)
|
|
+# define Tolower(cc) tolower(cc)
|
|
+# define Toupper(cc) toupper(cc)
|
|
+
|
|
+#else
|
|
+# define Asctime asctime
|
|
+# define Tolower(cc) \
|
|
+ (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))
|
|
+# define Toupper(cc) \
|
|
+ (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))
|
|
+#endif /* MSDOS */
|