summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2023-05-13 09:36:53 +0530
committerGitHub <noreply@github.com>2023-05-12 21:06:53 -0700
commita277a590f00c13aed1d4244653e8bbab3c2d3558 (patch)
tree2ecdd2ba8afb6fbc63e93398f3e68569f5d099a5 /plugins
parent05a52bab7511a834fd197b76c3ffbee744401e78 (diff)
downloadyasm-a277a590f00c13aed1d4244653e8bbab3c2d3558.tar.gz
Fix detecting Windows platform (#204)
This replaces _MSC_VER macro with _WIN32 because the former one is for MSVC and Visual Studio only and is not defined in mingw environment. Wherease, _WIN32 macro is the proper way to check Windows platform irrespective of compiler toolchain. See the following official link for more info https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dbg/init_plugin.c2
-rw-r--r--plugins/x86/init_plugin.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dbg/init_plugin.c b/plugins/dbg/init_plugin.c
index e8e53dc5..5c4eb6aa 100644
--- a/plugins/dbg/init_plugin.c
+++ b/plugins/dbg/init_plugin.c
@@ -3,7 +3,7 @@
extern yasm_arch_module yasm_dbg_LTX_objfmt;
-#ifdef _MSC_VER
+#ifdef _WIN32
__declspec(dllexport)
#endif
void
diff --git a/plugins/x86/init_plugin.c b/plugins/x86/init_plugin.c
index d2698b19..39a94ed0 100644
--- a/plugins/x86/init_plugin.c
+++ b/plugins/x86/init_plugin.c
@@ -3,7 +3,7 @@
extern yasm_arch_module yasm_x86_LTX_arch;
-#ifdef _MSC_VER
+#ifdef _WIN32
__declspec(dllexport)
#endif
void