diff options
author | rcdailey <[email protected]> | 2015-03-08 16:48:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-03-08 16:48:23 +0000 |
commit | c84b150c50093c680f18f0792bf7d52f157b01fe (patch) | |
tree | 40158cb3da0f1064d0ab6b42ae2ab998f604b168 /src/build-data | |
parent | f0ccd62149e466d4fbf1fb2c57227c4d3cee190c (diff) |
Add BOTAN_NOEXCEPT macro to work around missing noexcept in VS 2013.
Based on github pull req 23 by Robert Daily.
Diffstat (limited to 'src/build-data')
-rw-r--r-- | src/build-data/buildh.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in index 02f2731d6..e9115132f 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -135,6 +135,14 @@ otherwise does a byte at a time write via a volatile pointer. #define BOTAN_DEPRECATED(msg) #endif +#if defined(_MSC_VER) + // noexcept is not supported in VS 2013 + #include <yvals.h> + #define BOTAN_NOEXCEPT _NOEXCEPT +#else + #define BOTAN_NOEXCEPT noexcept +#endif + /* * Module availability definitions */ |