diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-23 12:30:54 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-23 13:00:13 +0000 |
commit | 5776a8f79ee587882c867aba3f5bd34fc4dbfdc1 (patch) | |
tree | 1d679bc4ba05436e633641f5d96ff5f3b0999c43 /community/rawtherapee/c++11.patch | |
parent | 7f216e7b52efe6ca35e045b240d7f2adec6e9a99 (diff) | |
download | aports-5776a8f79ee587882c867aba3f5bd34fc4dbfdc1.tar.bz2 aports-5776a8f79ee587882c867aba3f5bd34fc4dbfdc1.tar.xz |
community/rawtherapee: fix build with sigc++ 2.5.2
Diffstat (limited to 'community/rawtherapee/c++11.patch')
-rw-r--r-- | community/rawtherapee/c++11.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/rawtherapee/c++11.patch b/community/rawtherapee/c++11.patch new file mode 100644 index 0000000000..86a6ff0717 --- /dev/null +++ b/community/rawtherapee/c++11.patch @@ -0,0 +1,28 @@ +From c6620b415db72cbdf8833476a21af5190e15fa22 Mon Sep 17 00:00:00 2001 +From: Marcin Bajor <marcin.bajor@gmail.com> +Date: Wed, 14 Oct 2015 10:51:27 +0200 +Subject: [PATCH] Fix for build with C++11 flags + +--- + rtengine/dcraw.cc | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/rtengine/dcraw.cc b/rtengine/dcraw.cc +index add5b52..8e0a36d 100644 +--- a/rtengine/dcraw.cc ++++ b/rtengine/dcraw.cc +@@ -136,10 +136,10 @@ const float d65_white[3] = { 0.950456, 1, 1.088754 }; + + #define SQR(x) rtengine::SQR(x) + #define ABS(x) (((int)(x) ^ ((int)(x) >> 31)) - ((int)(x) >> 31)) +-#define MIN(a,b) rtengine::min(a,static_cast<typeof(a)>(b)) +-#define MAX(a,b) rtengine::max(a,static_cast<typeof(a)>(b)) +-#define LIM(x,min,max) rtengine::LIM(x,static_cast<typeof(x)>(min),static_cast<typeof(x)>(max)) +-#define ULIM(x,y,z) rtengine::ULIM(x,static_cast<typeof(x)>(y),static_cast<typeof(x)>(z)) ++#define MIN(a,b) rtengine::min(a,static_cast<__typeof__(a)>(b)) ++#define MAX(a,b) rtengine::max(a,static_cast<__typeof__(a)>(b)) ++#define LIM(x,min,max) rtengine::LIM(x,static_cast<__typeof__(x)>(min),static_cast<__typeof__(x)>(max)) ++#define ULIM(x,y,z) rtengine::ULIM(x,static_cast<__typeof__(x)>(y),static_cast<__typeof__(x)>(z)) + #define CLIP(x) rtengine::CLIP(x) + #define SWAP(a,b) { a=a+b; b=a-b; a=a-b; } + |