Skip to content

Commit

Permalink
Use _declspec(selectany) for rlbox_wasm2c_initialized on mingw
Browse files Browse the repository at this point in the history
Using `weak` doesn't work with mingw.
  • Loading branch information
glandium authored and shravanrn committed Aug 29, 2023
1 parent f8255c5 commit 0938ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rlbox_wasm2c_sandbox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ namespace wasm2c_detail {
} // namespace wasm2c_detail

// declare the static symbol with weak linkage to keep this header only
#if defined(_MSC_VER)
#if defined(_WIN32)
__declspec(selectany)
#else
__attribute__((weak))
Expand Down

0 comments on commit 0938ae9

Please sign in to comment.