mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
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
13 lines
246 B
C
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);
|
|
}
|