2016-08-31 01:04:33 +08:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2016-present, Przemyslaw Skibinski, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2016-05-12 23:15:41 +08:00
|
|
|
|
|
|
|
#ifndef ZSTD_ZLIBWRAPPER_H
|
|
|
|
#define ZSTD_ZLIBWRAPPER_H
|
|
|
|
|
|
|
|
#if defined (__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define Z_PREFIX
|
|
|
|
#include <zlib.h>
|
|
|
|
|
2016-05-27 18:33:19 +08:00
|
|
|
#if !defined(z_const)
|
2016-06-02 16:19:35 +08:00
|
|
|
#if ZLIB_VERNUM >= 0x1260
|
2016-08-31 01:04:33 +08:00
|
|
|
#define z_const const
|
2016-06-02 16:19:35 +08:00
|
|
|
#else
|
|
|
|
#define z_const
|
|
|
|
#endif
|
2016-05-27 18:33:19 +08:00
|
|
|
#endif
|
2016-05-12 23:15:41 +08:00
|
|
|
|
|
|
|
void useZSTD(int turn_on);
|
2016-06-03 00:40:41 +08:00
|
|
|
int isUsingZSTD(void);
|
|
|
|
const char * zstdVersion(void);
|
2016-05-12 23:15:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
#if defined (__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ZSTD_ZLIBWRAPPER_H */
|