From f0221ed49b8e365130a3734a87c84f74518f0c0f Mon Sep 17 00:00:00 2001 From: HAOZHE LI Date: Mon, 29 Jan 2024 23:01:45 +0800 Subject: [PATCH] export symbols on windows (#263) --- src/native/api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/native/api.h b/src/native/api.h index 321879c3..f1b8e506 100644 --- a/src/native/api.h +++ b/src/native/api.h @@ -7,6 +7,8 @@ extern "C" { #if defined(__wasm__) #define LLHTTP_EXPORT __attribute__((visibility("default"))) +#elif defined(_WIN32) +#define LLHTTP_EXPORT __declspec(dllexport) #else #define LLHTTP_EXPORT #endif