mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-03-03 01:51:32 +00:00
fix: WASM_API_EXTERN should get visibility("default") on gcc and clang
This allows the wasm_c_api to work in shared libraries on non-Windows platforms.
This commit is contained in:
parent
c46b10dcbc
commit
92d4e36087
|
|
@ -22,6 +22,8 @@
|
|||
#else
|
||||
#define WASM_API_EXTERN __declspec(dllimport)
|
||||
#endif
|
||||
#elif defined(__GNUC__) || defined(__clang__)
|
||||
#define WASM_API_EXTERN __attribute__((visibility("default")))
|
||||
#else
|
||||
#define WASM_API_EXTERN
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user