mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-04-18 18:18:44 +00:00
fix: WASM_API_EXTERN should get visibility("default") on gcc and clang (#4851)
This allows the wasm_c_api to work in shared libraries on non-Windows platforms.
This commit is contained in:
parent
ea063cdf5b
commit
9143b1a2e3
|
|
@ -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