Added ZSTDLIB_API definition to zstd_buffered.h which does not seem to include zstd.h

This commit is contained in:
Christophe Chevalier
2015-12-07 19:01:41 +01:00
parent c6e845398a
commit d2199e7250
+18
View File
@@ -47,6 +47,24 @@ extern "C" {
#include <stddef.h> /* 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
***************************************/