mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
vigra: patch for C++17
This commit is contained in:
parent
fb6d7ab3bd
commit
563a1699f4
2 changed files with 31 additions and 1 deletions
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'
|
# Template file for 'vigra'
|
||||||
pkgname=vigra
|
pkgname=vigra
|
||||||
version=1.11.1
|
version=1.11.1
|
||||||
revision=6
|
revision=7
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DWITH_OPENEXR=1"
|
configure_args="-DWITH_OPENEXR=1"
|
||||||
hostmakedepends="python3"
|
hostmakedepends="python3"
|
||||||
|
|
Loading…
Add table
Reference in a new issue