Skip to content

Commit

Permalink
export symbols on windows (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlen-LT authored Jan 29, 2024
1 parent ac7537c commit f0221ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/native/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0221ed

Please sign in to comment.