summaryrefslogtreecommitdiff
path: root/misc/astrolog/files/patch-ab
blob: 5d2c79c73c1a9ad2abdaa83a12beb3547ebf87a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- astrolog.h.orig	Thu Jan 26 06:19:59 2006
+++ astrolog.h	Thu Jan 26 06:24:50 2006
@@ -52,7 +52,7 @@
 
 /*#define MAC /* Comment out this #define if you're not compiling for a Mac. */
 
-#define X11 /* Comment out this #define if you don't have X windows, or */
+/*#define X11 /* Comment out this #define if you don't have X windows, or */
             /* else have them and don't wish to compile in X graphics.  */
 
 /*#define WIN /* Comment out this #define if you don't have MS Windows, or */
@@ -69,9 +69,11 @@
 /*#define MACG /* Comment out this #define if you don't have a Mac, or else  */
              /* have one and don't wish to compile in Mac screen graphics. */
 
+#if defined(X11) || defined(WIN) || defined(MSG) || defined(BGI) || defined(MACG)
 #define MOUSE /* Comment out this #define if you don't have a mouse, or    */
               /* don't wish to compile in mouse tracking features. This is */
               /* only valid if X11, WIN, MSG, BGI, or MACG above are set.  */
+#endif
 
 #define TIME /* Comment out this #define if your compiler can't take the  */
              /* calls to the 'time' or 'localtime' functions as in time.h */
@@ -86,7 +88,7 @@
              /* 'atof' and related functions aren't defined in stdio.h, */
              /* such as most PC's, Linux, VMS compilers, and NeXT's.    */
 
-/*#define PROTO /* Comment out this #define if you have an older compiler   */
+#define PROTO /* Comment out this #define if you have an older compiler   */
               /* which doesn't allow full Ansi function prototypes. This  */
               /* is for programmers only and has no effect on executable. */
 
@@ -131,7 +133,9 @@
 */
 
 #ifndef PC
+#ifndef DEFAULT_DIR
 #define DEFAULT_DIR "~/astrolog"
+#endif
 #else
 #define DEFAULT_DIR "C:\\ASTROLOG"
 #endif
@@ -1046,9 +1050,9 @@
 */
 
 #define byte  unsigned char
-#define word  unsigned short
-#define dword unsigned long
-#define word4 long
+#define word  u_int16_t
+#define dword u_int32_t
+#define word4 int32_t
 #define real  double
 #define _char unsigned char
 #define _int  unsigned int