Add missing #ifdef

This commit is contained in:
Richard Berger
2020-08-31 19:49:17 -04:00
parent 0925fc822d
commit fe833e6c87
2 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,8 @@
Contributing author: Richard Berger (Temple U)
------------------------------------------------------------------------- */
#ifdef LAMMPS_ZSTD
#include "zstd_file_writer.h"
#include <stdio.h>
#include <fmt/format.h>
@ -156,3 +158,5 @@ void ZstdFileWriter::setChecksum(bool enabled)
throw FileWriterException("Checksum flag can not be changed while file is open");
checksum_flag = enabled ? 1 : 0;
}
#endif

View File

@ -15,6 +15,8 @@
Contributing author: Richard Berger (Temple U)
------------------------------------------------------------------------- */
#ifdef LAMMPS_ZSTD
#ifndef LMP_ZSTD_FILE_WRITER_H
#define LMP_ZSTD_FILE_WRITER_H
@ -50,3 +52,4 @@ public:
}
#endif
#endif