diff --git a/binaryninja/main_plugin.cc b/binaryninja/main_plugin.cc old mode 100644 new mode 100755 diff --git a/binaryninja/main_plugin.h b/binaryninja/main_plugin.h old mode 100644 new mode 100755 index 084bb80a..4e01c582 --- a/binaryninja/main_plugin.h +++ b/binaryninja/main_plugin.h @@ -19,6 +19,11 @@ #include "binaryninjaapi.h" // NOLINT // clang-format on +#ifdef _WIN32 +// binaryninja.h includes Windows.h, so undefine +#undef ERROR +#endif + namespace security::binexport { class Plugin {