From 6277a83d956dad6f7cab7ee6193b9326680f8e1f Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Sat, 7 Feb 2015 23:32:16 -0500 Subject: Fix Windows build --- binaryninjaapi.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index eedc632b..eee2ffac 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -9,6 +9,12 @@ #include #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 -- cgit v1.3.1