Skip to content

Commit

Permalink
Support static linking on Windows (#3859)
Browse files Browse the repository at this point in the history
Static lib define
  • Loading branch information
ashtonmeuser authored May 14, 2023
1 parent ef5dbd4 commit b4a4372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/c-api/tests/wasm-c-api/include/wasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <assert.h>

#ifndef WASM_API_EXTERN
#if defined(_WIN32) && !defined(__MINGW32__)
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(LIBWASM_STATIC)
#define WASM_API_EXTERN __declspec(dllimport)
#else
#define WASM_API_EXTERN
Expand Down
2 changes: 1 addition & 1 deletion lib/c-api/tests/wasm-c-api/include/wasm.hh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <string>

#ifndef WASM_API_EXTERN
#if defined(_WIN32) && !defined(__MINGW32__)
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(LIBWASM_STATIC)
#define WASM_API_EXTERN __declspec(dllimport)
#else
#define WASM_API_EXTERN
Expand Down

0 comments on commit b4a4372

Please sign in to comment.