summaryrefslogtreecommitdiff
path: root/math/pari/files
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2004-10-04 23:27:44 +0000
committerAde Lovett <ade@FreeBSD.org>2004-10-04 23:27:44 +0000
commitf9dde1308b54665d8dba3a1f1b41d035ec1f1ff7 (patch)
tree8f500100e3b6fc0d234d58d020a3f7d051324c34 /math/pari/files
parentMark as i386-only since it uses speaker.h. pointyhat confirms that it (diff)
Hack to make pari compile again on 5.3 prior to release
Reviewed by: maintainer Approved by: portmgr (marcus)
Diffstat (limited to 'math/pari/files')
-rw-r--r--math/pari/files/hack-src:headers::paricom.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/pari/files/hack-src:headers::paricom.h b/math/pari/files/hack-src:headers::paricom.h
new file mode 100644
index 000000000000..a02b299ee7dd
--- /dev/null
+++ b/math/pari/files/hack-src:headers::paricom.h
@@ -0,0 +1,20 @@
+--- src/headers/paricom.h.orig Fri Nov 3 13:00:24 2000
++++ src/headers/paricom.h Wed Sep 29 20:22:41 2004
+@@ -86,3 +86,2 @@
+
+-#ifdef NOEXP2
+ # ifdef __cplusplus
+@@ -92,12 +91,4 @@
+ # define exp2(x) (exp((double)(x)*LOG2))
+-# ifndef __CYGWIN32__
+-# define log2(x) (log((double)(x))/LOG2)
+-# endif
++# define log2(x) (log((double)(x))/LOG2)
+ # endif
+-#else
+- BEGINEXTERN
+- double exp2(double);
+- double log2(double);
+- ENDEXTERN
+-#endif
+