Skip to content

Commit 5f7ed69

Browse files
authored
Static lib define (#183)
1 parent 13f3bfd commit 5f7ed69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/wasm.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <assert.h>
1111

1212
#ifndef WASM_API_EXTERN
13-
#if defined(_WIN32) && !defined(__MINGW32__)
13+
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(LIBWASM_STATIC)
1414
#define WASM_API_EXTERN __declspec(dllimport)
1515
#else
1616
#define WASM_API_EXTERN

include/wasm.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <string>
1313

1414
#ifndef WASM_API_EXTERN
15-
#if defined(_WIN32) && !defined(__MINGW32__)
15+
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(LIBWASM_STATIC)
1616
#define WASM_API_EXTERN __declspec(dllimport)
1717
#else
1818
#define WASM_API_EXTERN

0 commit comments

Comments
 (0)