Fix compile warnings on windows platform: dll linkage and others (#604)
This commit is contained in:
@ -33,9 +33,14 @@ extern "C" {
|
||||
#define BH_FREE os_free
|
||||
#endif
|
||||
|
||||
#if defined(MSVC)
|
||||
__declspec(dllimport) void *BH_MALLOC(unsigned int size);
|
||||
__declspec(dllimport) void BH_FREE(void *ptr);
|
||||
#if defined(_MSC_BUILD)
|
||||
#if defined(COMPILING_WASM_RUNTIME_API)
|
||||
__declspec(dllexport) void *BH_MALLOC(unsigned int size);
|
||||
__declspec(dllexport) void BH_FREE(void *ptr);
|
||||
#else
|
||||
__declspec(dllimport) void* BH_MALLOC(unsigned int size);
|
||||
__declspec(dllimport) void BH_FREE(void* ptr);
|
||||
#endif
|
||||
#else
|
||||
void *BH_MALLOC(unsigned int size);
|
||||
void BH_FREE(void *ptr);
|
||||
|
||||
Reference in New Issue
Block a user