Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/luna/files/patch-pyramid.h
16461 views
1
--- pyramid.h.orig 2016-07-26 13:07:24 UTC
2
+++ pyramid.h
3
@@ -14,13 +14,16 @@
4
# include <dos.h>
5
# include <stdlib.h>
6
# include <string.h>
7
-# define LASCTIME (30)
8
+# define LASCTIME (26)
9
10
#else /* UNIX */
11
-# include <sys/time.h>
12
+/*# include <sys/time.h>*/
13
+# include <time.h>
14
typedef time_t Time_t;
15
# include <memory.h>
16
-# define LASCTIME (30)
17
+# define LASCTIME (26)
18
+ extern char *asctime();
19
+ extern char *getenv();
20
#endif /* MSDOS or not */
21
22
typedef long ABDATE;
23
@@ -52,15 +55,6 @@ typedef long ABDATE;
24
# if defined(MSDOS)
25
extern char *Asctime(struct tm *tmp);
26
extern char *capitalize(char *chp);
27
-# define Tolower(cc) tolower(cc)
28
-# define Toupper(cc) toupper(cc)
29
-# else /* MSDOS */
30
-# define Asctime asctime
31
-/*# define Tolower(cc) \
32
-/* (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))
33
-/*# define Toupper(cc) \
34
-/* (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))
35
- */
36
# endif /* ANSI and MSDOS */
37
38
#else /* ANSI */
39
@@ -69,3 +63,16 @@ typedef long ABDATE;
40
extern void tzconv();
41
extern void tomorrow();
42
#endif /* ANSI or not */
43
+
44
+
45
+#if defined(MSDOS)
46
+# define Tolower(cc) tolower(cc)
47
+# define Toupper(cc) toupper(cc)
48
+
49
+#else
50
+# define Asctime asctime
51
+# define Tolower(cc) \
52
+ (('A' <= (cc) && (cc) <= 'Z') ? ((cc) - 'A' + 'a') : (cc))
53
+# define Toupper(cc) \
54
+ (('a' <= (cc) && (cc) <= 'z') ? ((cc) - 'a' + 'A') : (cc))
55
+#endif /* MSDOS */
56
57