Package: astronomical-almanac / 5.6-7

plantbl.h.patch Patch series | download
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
Description: move changes in source files to patches
Author: Thorsten Alteholz <debian@alteholz.de>
Last-Update: 03 Mar 2012
Forwarded: patch is from upstream

Index: astronomical-almanach/plantbl.h
===================================================================
--- astronomical-almanach.orig/plantbl.h	2012-03-02 13:18:16.000000000 +0100
+++ astronomical-almanach/plantbl.h	2012-03-02 13:18:49.000000000 +0100
@@ -22,11 +22,28 @@
 
 #define NARGS 18
 
+#ifdef _MSC_VER
+#define SIGNED
+#else
+  /* On some systems such as Silicon Graphics, char is unsigned
+     by default.  */
+#ifdef vax
+  /* VAX CC rejects "signed char."  */
+#define SIGNED
+#else
+#ifdef __STDC__
+#define SIGNED signed
+#else
+#define SIGNED
+#endif
+#endif
+#endif
+
 struct plantbl {
   char maxargs;
   char max_harmonic[NARGS];
   char max_power_of_t;
-  char FAR *arg_tbl;
+  char SIGNED FAR *arg_tbl;
   void FAR *lon_tbl;
   void FAR *lat_tbl;
   void FAR *rad_tbl;