summaryrefslogtreecommitdiff
path: root/graphics/vigra/patches
diff options
context:
space:
mode:
authorobache <obache>2012-02-26 08:38:21 +0000
committerobache <obache>2012-02-26 08:38:21 +0000
commitc661adb2c22c23de04a1e9036ed9206772a5f188 (patch)
treeaf6ec07c0d087363935806dcaf5c982299b43585 /graphics/vigra/patches
parent764daca3e8ac17aff83992b193a7b40542c0570a (diff)
downloadpkgsrc-c661adb2c22c23de04a1e9036ed9206772a5f188.tar.gz
At least, gcc-4.1.3 does not have abs(signed long long).
PR 45922.
Diffstat (limited to 'graphics/vigra/patches')
-rw-r--r--graphics/vigra/patches/patch-include-vigra-mathutil.hxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/graphics/vigra/patches/patch-include-vigra-mathutil.hxx b/graphics/vigra/patches/patch-include-vigra-mathutil.hxx
index ac0360951f5..2ef1fe24c2f 100644
--- a/graphics/vigra/patches/patch-include-vigra-mathutil.hxx
+++ b/graphics/vigra/patches/patch-include-vigra-mathutil.hxx
@@ -1,7 +1,19 @@
-$NetBSD: patch-include-vigra-mathutil.hxx,v 1.2 2011/12/15 18:48:02 marino Exp $
+$NetBSD: patch-include-vigra-mathutil.hxx,v 1.3 2012/02/26 08:38:21 obache Exp $
---- include/vigra/mathutil.hxx.orig 2011-12-15 07:07:07.573857000 +0000
+* missing abs(signed long long) in old GCC.
+* Fix ambiguous math functions for DragonFly.
+
+--- include/vigra/mathutil.hxx.orig 2011-09-20 18:38:36.000000000 +0000
+++ include/vigra/mathutil.hxx
+@@ -149,7 +149,7 @@ VIGRA_DEFINE_UNSIGNED_ABS(unsigned long
+ VIGRA_DEFINE_MISSING_ABS(signed char)
+ VIGRA_DEFINE_MISSING_ABS(signed short)
+
+-#if defined(_MSC_VER) && _MSC_VER < 1600
++#if defined(_MSC_VER) && _MSC_VER < 1600 || defined(__GNUC__) && (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 2)
+ VIGRA_DEFINE_MISSING_ABS(signed long long)
+ #endif
+
@@ -553,7 +553,12 @@ VIGRA_DEFINE_NORM(int)
VIGRA_DEFINE_NORM(unsigned int)
VIGRA_DEFINE_NORM(long)