forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ba1c76
commit 239b353
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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,10 +15,10 @@ | ||
|
||
// This is here for compatibility with older versions of Visual Studio | ||
// which don't support noexcept | ||
-#ifdef _MSC_VER | ||
- #define YAML_CPP_NOEXCEPT _NOEXCEPT | ||
-#else | ||
+#if _MSC_VER >= 1900 | ||
#define YAML_CPP_NOEXCEPT noexcept | ||
+#else | ||
+ #define YAML_CPP_NOEXCEPT _NOEXCEPT | ||
#endif | ||
|
||
namespace YAML { | ||
diff --git a/src/exceptions.cpp b/src/exceptions.cpp | ||
index 9b6d891..931b4bc 100644 | ||
--- a/src/exceptions.cpp | ||
+++ b/src/exceptions.cpp | ||
@@ -2,10 +2,10 @@ | ||
|
||
// This is here for compatibility with older versions of Visual Studio | ||
// which don't support noexcept | ||
-#ifdef _MSC_VER | ||
- #define YAML_CPP_NOEXCEPT _NOEXCEPT | ||
-#else | ||
+#if _MSC_VER >= 1900 | ||
#define YAML_CPP_NOEXCEPT noexcept | ||
+#else | ||
+ #define YAML_CPP_NOEXCEPT _NOEXCEPT | ||
#endif | ||
|
||
namespace YAML { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Source: yaml-cpp | ||
Version: 0.6.2 | ||
Version: 0.6.2-1 | ||
Description: yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters