From d275236e6ae6d4bbce83549130a0b3a5fd1d381c Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 9 May 2016 08:19:27 +0200 Subject: [PATCH] Fixed Windows API, as detected by @KrzysFR (#171) --- lib/common/zstd_static.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/common/zstd_static.h b/lib/common/zstd_static.h index 960808bc..0ec5b635 100644 --- a/lib/common/zstd_static.h +++ b/lib/common/zstd_static.h @@ -103,7 +103,7 @@ ZSTDLIB_API unsigned ZSTD_maxCLevel (void); /*! ZSTD_getCParams() : * @return ZSTD_compressionParameters structure for a selected compression level and srcSize. * `srcSize` value is optional, select 0 if not known */ -ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, U64 srcSize, size_t dictSize); +ZSTDLIB_API ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, U64 srcSize, size_t dictSize); /*! ZSTD_checkParams() : * Ensure param values remain within authorized range */ @@ -250,8 +250,8 @@ ZSTDLIB_API size_t ZSTD_decompressContinue(ZSTD_DCtx* dctx, void* dst, size_t ds */ #define ZSTD_BLOCKSIZE_MAX (128 * 1024) /* define, for static allocation */ -size_t ZSTD_compressBlock (ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); -size_t ZSTD_decompressBlock(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); +ZSTDLIB_API size_t ZSTD_compressBlock (ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); +ZSTDLIB_API size_t ZSTD_decompressBlock(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); /*-************************************* @@ -261,7 +261,7 @@ size_t ZSTD_decompressBlock(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, cons /*! ZSTD_getErrorCode() : convert a `size_t` function result into a `ZSTD_ErrorCode` enum type, which can be used to compare directly with enum list published into "error_public.h" */ -ZSTD_ErrorCode ZSTD_getError(size_t code); +ZSTDLIB_API ZSTD_ErrorCode ZSTD_getError(size_t code); #if defined (__cplusplus)