aboutsummaryrefslogtreecommitdiffstats
path: root/community/rawtherapee/gcc6.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-11-07 16:15:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-11-07 16:15:27 +0000
commit60ccd5b05a7fccfc935132fab1ab48f6835f285b (patch)
tree182212d1699b74c195435492adae8fe224e1268c /community/rawtherapee/gcc6.patch
parent560f6d11a895fa8af7eacc2639d1d45b58d14dff (diff)
downloadaports-60ccd5b05a7fccfc935132fab1ab48f6835f285b.tar.bz2
aports-60ccd5b05a7fccfc935132fab1ab48f6835f285b.tar.xz
community/rawtherapee: modernize. fix build with gcc6
Diffstat (limited to 'community/rawtherapee/gcc6.patch')
-rw-r--r--community/rawtherapee/gcc6.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/rawtherapee/gcc6.patch b/community/rawtherapee/gcc6.patch
new file mode 100644
index 0000000000..b4ee6126a6
--- /dev/null
+++ b/community/rawtherapee/gcc6.patch
@@ -0,0 +1,11 @@
+--- ./rtexif/rtexif.h.orig
++++ ./rtexif/rtexif.h
+@@ -410,7 +410,7 @@
+ else
+ lensAperture = exp( log(a1)+(log(a2)-log(a1))/(log(f2)-log(f1))*(log(focalLength)-log(f1)) );
+
+- dif = abs(lensAperture - maxApertureAtFocal);
++ dif = std::abs(lensAperture - maxApertureAtFocal);
+ }else
+ dif = 0;
+ if( dif < deltaMin ){