Rename ZSTDLIB_API to ZDICTLIB_API in zdict.h
This commit is contained in:
parent
1f48382b1a
commit
0f6f17a14f
@ -45,9 +45,9 @@ extern "C" {
|
|||||||
* Enable exporting of functions when building a Windows DLL
|
* Enable exporting of functions when building a Windows DLL
|
||||||
*/
|
*/
|
||||||
#if defined(_WIN32) && defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
|
#if defined(_WIN32) && defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
|
||||||
# define ZSTDLIB_API __declspec(dllexport)
|
# define ZDICTLIB_API __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
# define ZSTDLIB_API
|
# define ZDICTLIB_API
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -63,13 +63,13 @@ extern "C" {
|
|||||||
In general, it's recommended to provide a few thousands samples, but this can vary a lot.
|
In general, it's recommended to provide a few thousands samples, but this can vary a lot.
|
||||||
It's recommended that total size of all samples be about ~x100 times the target size of dictionary.
|
It's recommended that total size of all samples be about ~x100 times the target size of dictionary.
|
||||||
*/
|
*/
|
||||||
ZSTDLIB_API size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity,
|
ZDICTLIB_API size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity,
|
||||||
const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples);
|
const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples);
|
||||||
|
|
||||||
|
|
||||||
/*====== Helper functions ======*/
|
/*====== Helper functions ======*/
|
||||||
ZSTDLIB_API unsigned ZDICT_isError(size_t errorCode);
|
ZDICTLIB_API unsigned ZDICT_isError(size_t errorCode);
|
||||||
ZSTDLIB_API const char* ZDICT_getErrorName(size_t errorCode);
|
ZDICTLIB_API const char* ZDICT_getErrorName(size_t errorCode);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user