summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2015-02-07 23:32:16 -0500
committerRusty Wagner <rusty@vector35.com>2015-02-07 23:32:16 -0500
commit6277a83d956dad6f7cab7ee6193b9326680f8e1f (patch)
treee8dd8d6f55d7a596c8eb84e04ad29a8933f2e75b /binaryninjaapi.h
parentdcafa05be903ab240f3327ea6329cb474238146c (diff)
Fix Windows build
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index eedc632b..eee2ffac 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -9,6 +9,12 @@
#include <exception>
#include "binaryninjacore.h"
+#ifdef _MSC_VER
+#define NOEXCEPT
+#else
+#define NOEXCEPT noexcept
+#endif
+
namespace BinaryNinja
{
@@ -361,7 +367,7 @@ namespace BinaryNinja
{
public:
ReadException(): std::exception() {}
- virtual const char* what() const noexcept { return "read out of bounds"; }
+ virtual const char* what() const NOEXCEPT { return "read out of bounds"; }
};
class BinaryReader
@@ -411,7 +417,7 @@ namespace BinaryNinja
{
public:
WriteException(): std::exception() {}
- virtual const char* what() const noexcept { return "write out of bounds"; }
+ virtual const char* what() const NOEXCEPT { return "write out of bounds"; }
};
class BinaryWriter