Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exports for MSVC build #125

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions c/include/brunsli/decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Outputs to out_fun, out_fun must return amount of consumed bytes, any return
value not equal to the input size is considered an error. It will pass on the
out_data to out_fun.
*/
#if defined(_MSC_VER) && defined(brunslidec_c_EXPORTS)
__declspec(dllexport)
#endif
int DecodeBrunsli(size_t in_size, const uint8_t* in, void* out_data,
DecodeBrunsliSink out_fun);

Expand Down
3 changes: 3 additions & 0 deletions c/include/brunsli/encode.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Outputs to outfun, outfun must return amount of consumed bytes, any return value
not equal to the input size is considered an error. It will pass on the outdata
to outfun.
*/
#if defined(_MSC_VER) && defined(brunslienc_c_EXPORTS)
__declspec(dllexport)
#endif
int EncodeBrunsli(size_t insize, const unsigned char* in, void* outdata,
size_t (*outfun)(void* outdata, const unsigned char* buf, size_t size));

Expand Down