blob: aca3ce251eb705a5a8dd2ee863a492671d37385c (
plain)
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
|
Description: Fixes builds on ppc64 and ppc64el architectures.
Author: Fernando Seiti Furusato <ferseiti@br.ibm.com>, Andreas Jochens <aj@andaco.de>
Forwarded: no
--- a/scmfig.h
+++ b/scmfig.h
@@ -264,6 +264,10 @@
# define SHORT_INT
# define CDR_DOUBLES
#endif
+#ifdef __powerpc64__
+# define SHORT_INT
+# define CDR_DOUBLES
+#endif
#ifdef MSDOS /* Microsoft C 5.10 and 6.00A */
# ifndef GO32
# define SHORT_INT
@@ -393,14 +397,10 @@
# define WHITE_SPACES ' ':case '\t':case '\r':case '\f'
#endif
-#ifdef __ia64__
+#if defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__)
# define PTR2INT(x) ((long)(x))
#else
-# ifdef __x86_64
-# define PTR2INT(x) ((long)(x))
-# else
-# define PTR2INT(x) ((int)(x))
-# endif
+# define PTR2INT(x) ((int)(x))
#endif
/* Define BIGDIG to an integer type whose size is smaller than long if
|