vigra: patch for C++17
This commit is contained in:
30
srcpkgs/vigra/patches/c++17.patch
Normal file
30
srcpkgs/vigra/patches/c++17.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
Index: vigra-1.11.1/include/vigra/stdconvolution.hxx
|
||||
===================================================================
|
||||
--- vigra-1.11.1.orig/include/vigra/stdconvolution.hxx
|
||||
+++ vigra-1.11.1/include/vigra/stdconvolution.hxx
|
||||
@@ -792,7 +792,9 @@ public:
|
||||
{}
|
||||
|
||||
~InitProxy()
|
||||
-#ifndef _MSC_VER
|
||||
+#if __cplusplus >= 201700L
|
||||
+ noexcept(false)
|
||||
+#elif !defined(_MSC_VER)
|
||||
throw(PreconditionViolation)
|
||||
#elif _MSC_VER >= 1900
|
||||
noexcept(false)
|
||||
Index: vigra-1.11.1/include/vigra/separableconvolution.hxx
|
||||
===================================================================
|
||||
--- vigra-1.11.1.orig/include/vigra/separableconvolution.hxx
|
||||
+++ vigra-1.11.1/include/vigra/separableconvolution.hxx
|
||||
@@ -1409,7 +1409,9 @@ class Kernel1D
|
||||
{}
|
||||
|
||||
~InitProxy()
|
||||
-#ifndef _MSC_VER
|
||||
+#if __cplusplus >= 201700L
|
||||
+ noexcept(false)
|
||||
+#elif !defined(_MSC_VER)
|
||||
throw(PreconditionViolation)
|
||||
#elif _MSC_VER >= 1900
|
||||
noexcept(false)
|
||||
@@ -1,7 +1,7 @@
|
||||
# Template file for 'vigra'
|
||||
pkgname=vigra
|
||||
version=1.11.1
|
||||
revision=6
|
||||
revision=7
|
||||
build_style=cmake
|
||||
configure_args="-DWITH_OPENEXR=1"
|
||||
hostmakedepends="python3"
|
||||
|
||||
Reference in New Issue
Block a user