aboutsummaryrefslogtreecommitdiff
path: root/ports/yaml-cpp/0001-noexcept.patch
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-12-06 15:06:28 -0800
committerPhil Christensen <philc@microsoft.com>2018-12-06 15:06:28 -0800
commit7347305e8459fcc78553a9f88196e0d93eb0a8fe (patch)
treeac9eee9ff267c6a71a83249bed7a94f02b00d9a5 /ports/yaml-cpp/0001-noexcept.patch
parented9357a5aafea7192932b5874264bd103fc61255 (diff)
parent63c1b2628e958f8e02356411f032941c0c2f3bbb (diff)
downloadvcpkg-7347305e8459fcc78553a9f88196e0d93eb0a8fe.tar.gz
vcpkg-7347305e8459fcc78553a9f88196e0d93eb0a8fe.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/3425
Diffstat (limited to 'ports/yaml-cpp/0001-noexcept.patch')
-rw-r--r--ports/yaml-cpp/0001-noexcept.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/ports/yaml-cpp/0001-noexcept.patch b/ports/yaml-cpp/0001-noexcept.patch
new file mode 100644
index 000000000..e5e1882c0
--- /dev/null
+++ b/ports/yaml-cpp/0001-noexcept.patch
@@ -0,0 +1,26 @@
+diff --git a/include/yaml-cpp/exceptions.h b/include/yaml-cpp/exceptions.h
+index 9c96859..a6045ee 100644
+--- a/include/yaml-cpp/exceptions.h
++++ b/include/yaml-cpp/exceptions.h
+@@ -15,7 +15,7 @@
+
+ // This is here for compatibility with older versions of Visual Studio
+ // which don't support noexcept
+-#ifdef _MSC_VER
++#if defined(_MSC_VER) && _MSC_VER < 1900
+ #define YAML_CPP_NOEXCEPT _NOEXCEPT
+ #else
+ #define YAML_CPP_NOEXCEPT noexcept
+diff --git a/src/exceptions.cpp b/src/exceptions.cpp
+index 9b6d891..931b4bc 100644
+--- a/src/exceptions.cpp
++++ b/src/exceptions.cpp
+@@ -2,7 +2,7 @@
+
+ // This is here for compatibility with older versions of Visual Studio
+ // which don't support noexcept
+-#ifdef _MSC_VER
++#if defined(_MSC_VER) && _MSC_VER < 1900
+ #define YAML_CPP_NOEXCEPT _NOEXCEPT
+ #else
+ #define YAML_CPP_NOEXCEPT noexcept