diff options
Diffstat (limited to 'zioP.h')
-rw-r--r-- | zioP.h | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -1,11 +1,12 @@ /* * zioP.h Internal header for libzio, including required standard glibc - * header, zlib.h, lzma.h or lzmadec.h, and bzlib.h. - * Making the used libz, liblzma, and bzlib functions weak symbols. + * header, zlib.h, lzma.h or lzmadec.h, zstd.h, and bzlib.h. + * Making the used libz, liblzma, libzstd, and bzlib functions weak symbols. * * Copyright 2004 Werner Fink, 2004 SuSE LINUX AG, Germany. * Copyright 2006 Werner Fink, 2006 SuSE Products GmbH, Germany. * Copyright 2013 Werner Fink, 2013 SuSE Products GmbH, Germany. + * Copyright 2021 Werner Fink, 2021 SUSE Software Solutions Germany GmbH, Germany. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -135,6 +136,23 @@ weak_symbol(lzmadec_close); # endif #endif /* !HAS_LZMA_H */ +#if defined(HAS_ZSTD_H) +# include <zstd.h> +# ifndef NO_WEAK +weak_symbol(ZSTD_initCStream); +weak_symbol(ZSTD_initDStream); +weak_symbol(ZSTD_createCStream); +weak_symbol(ZSTD_createDStream); +weak_symbol(ZSTD_compressStream); +weak_symbol(ZSTD_decompressStream); +weak_symbol(ZSTD_endStream); +weak_symbol(ZSTD_freeCStream); +weak_symbol(ZSTD_freeDStream); +weak_symbol(ZSTD_isError); +weak_symbol(ZSTD_getErrorName); +# endif +#endif + #if defined(HAVE_FOPENCOOKIE) # undef HAVE_FUNOPEN __extension__ typedef off_t zio_off_t; |