we require at least zstd API version 1.4

This commit is contained in:
Axel Kohlmeyer
2021-07-06 13:39:07 -04:00
parent c805040e14
commit d041e5cba0
2 changed files with 7 additions and 1 deletions

View File

@ -74,7 +74,8 @@ To build with this package you must have the `zlib compression library
<https://zlib.net>`_ available on your system to build dump styles with
a '/gz' suffix. There are also styles using the
`Zstandard <https://facebook.github.io/zstd/>`_ library which have a
'/zstd' suffix.
'/zstd' suffix. The zstd library version must be at least 1.4. Older
versions use an incompatible API and thus LAMMPS will fail to compile.
.. tabs::

View File

@ -25,6 +25,11 @@
#include <string>
#include <zstd.h>
#if ZSTD_VERSION_NUMBER < 10400
#error must have at least zstd version 1.4 to compile with -DLAMMPS_ZSTD
#endif
namespace LAMMPS_NS {
class ZstdFileWriter : public FileWriter {