From: Christophe Chevalier Date: Mon, 7 Dec 2015 18:01:41 +0000 (+0100) Subject: Added ZSTDLIB_API definition to zstd_buffered.h which does not seem to include zstd.h X-Git-Tag: v0.4.4^2~12^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2199e72501737faaf87c4bdc4a33eb06eddb998;p=thirdparty%2Fzstd.git Added ZSTDLIB_API definition to zstd_buffered.h which does not seem to include zstd.h --- diff --git a/lib/zstd_buffered.h b/lib/zstd_buffered.h index 80e6e599d..fffa70a05 100644 --- a/lib/zstd_buffered.h +++ b/lib/zstd_buffered.h @@ -47,6 +47,24 @@ extern "C" { #include /* size_t */ +/* *************************************************************** +* Tuning parameters +*****************************************************************/ +/*! +* ZSTD_DLL_EXPORT : +* Enable exporting of functions when building a DLL +*/ +#if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1) +# if _WIN32 +# define ZSTDLIB_API __declspec(dllexport) +# else +# define ZSTDLIB_API extern +# endif +#else +# define ZSTDLIB_API +#endif + + /* ************************************* * Streaming functions ***************************************/