diff options
author | obache <obache@pkgsrc.org> | 2012-02-26 08:38:21 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2012-02-26 08:38:21 +0000 |
commit | 6d56ee3689f89cdfe1c5b98b7094b7622f07c329 (patch) | |
tree | af6ec07c0d087363935806dcaf5c982299b43585 /graphics/vigra/patches/patch-include-vigra-mathutil.hxx | |
parent | c205d81061eab71a6a7df38af007aa0f39f20eef (diff) | |
download | pkgsrc-6d56ee3689f89cdfe1c5b98b7094b7622f07c329.tar.gz |
At least, gcc-4.1.3 does not have abs(signed long long).
PR 45922.
Diffstat (limited to 'graphics/vigra/patches/patch-include-vigra-mathutil.hxx')
-rw-r--r-- | graphics/vigra/patches/patch-include-vigra-mathutil.hxx | 16 |
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) |