yasm/plugins/dbg/init_plugin.c
Biswapriyo Nath a277a590f0
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
2023-05-12 21:06:53 -07:00

13 lines
246 B
C

#include <libyasm.h>
#include <libyasm/module.h>
extern yasm_arch_module yasm_dbg_LTX_objfmt;
#ifdef _WIN32
__declspec(dllexport)
#endif
void
yasm_init_plugin(void)
{
yasm_register_module(YASM_MODULE_OBJFMT, "dbg", &yasm_dbg_LTX_objfmt);
}