Fix some compilation issues

This commit is contained in:
momo5502
2025-01-05 13:11:32 +01:00
parent c07fb2ca86
commit 05e75a20ba
5 changed files with 18 additions and 9 deletions

View File

@@ -4,11 +4,19 @@
#include <x64_emulator.hpp>
#include "platform/platform.hpp"
#ifdef WIN32
#ifdef UNICORN_EMULATOR_IMPL
#define UNICORN_EMULATOR_DLL_STORAGE EXPORT_SYMBOL
#else
#define UNICORN_EMULATOR_DLL_STORAGE IMPORT_SYMBOL
#endif
#else
#ifdef UNICORN_EMULATOR_IMPL
#define UNICORN_EMULATOR_DLL_STORAGE __attribute__((visibility("default")))
#else
#define UNICORN_EMULATOR_DLL_STORAGE
#endif
#endif
namespace unicorn
{