summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2017-12-22 18:03:12 +0700
committerAndrey Grozin <grozin@gentoo.org>2017-12-22 18:05:19 +0700
commit0f23f207913e174c77b1ea46586662e0a6340f40 (patch)
tree2f1996a5bbb21ec8c0118d9db31bded66428dfc1 /app-office/texmacs/files/texmacs-1.99.6-math_util.patch
parentmail-filter/opendmarc: fix building older version with newer glibc (diff)
downloadgentoo-0f23f207913e174c77b1ea46586662e0a6340f40.tar.gz
gentoo-0f23f207913e174c77b1ea46586662e0a6340f40.tar.bz2
gentoo-0f23f207913e174c77b1ea46586662e0a6340f40.zip
app-office/texmacs: bump to 1.99.6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-office/texmacs/files/texmacs-1.99.6-math_util.patch')
-rw-r--r--app-office/texmacs/files/texmacs-1.99.6-math_util.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-office/texmacs/files/texmacs-1.99.6-math_util.patch b/app-office/texmacs/files/texmacs-1.99.6-math_util.patch
new file mode 100644
index 000000000000..006c92c2be33
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-1.99.6-math_util.patch
@@ -0,0 +1,15 @@
+diff -r -U2 TeXmacs-1.99.6-src.orig/src/Graphics/Types/math_util.hpp TeXmacs-1.99.6-src/src/Graphics/Types/math_util.hpp
+--- TeXmacs-1.99.6-src.orig/src/Graphics/Types/math_util.hpp 2017-12-22 03:27:43.000000000 +0700
++++ TeXmacs-1.99.6-src/src/Graphics/Types/math_util.hpp 2017-12-22 16:44:35.052378917 +0700
+@@ -24,11 +24,4 @@
+ inline int sign (double x) { return x>0?1:x<0?-1:0; }
+ inline bool fnull (double x, double approx) { return norm(x) <= approx; }
+-#ifndef __SUNPRO_CC
+-inline double pow (double x, int n) {
+- double r= 1.0;
+- while (n > 0) { r *= x; n--; }
+- return r; }
+-#endif
+-
+
+ #endif // defined MATH_UTIL_H