diff options
| author | Petr Mrázek <peterix@gmail.com> | 2015-09-23 00:33:33 +0200 |
|---|---|---|
| committer | Petr Mrázek <peterix@gmail.com> | 2015-09-23 00:44:46 +0200 |
| commit | 076647597f2ebb6f243f34aacaacf0a974752085 (patch) | |
| tree | 9c9be6623486aebdfeb9ab68a678adc3d88492b9 /test/write_test.h | |
| parent | 7f38044924fe5f13a61c3265a73d0045ddd2a1b2 (diff) | |
| download | Project-Tick-076647597f2ebb6f243f34aacaacf0a974752085.tar.gz Project-Tick-076647597f2ebb6f243f34aacaacf0a974752085.zip | |
Make zlib optional, adapt for including
Diffstat (limited to 'test/write_test.h')
| -rw-r--r-- | test/write_test.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/write_test.h b/test/write_test.h index 69c5dfdb97..a302891074 100644 --- a/test/write_test.h +++ b/test/write_test.h @@ -20,8 +20,10 @@ #include <cxxtest/TestSuite.h> #include "io/stream_writer.h" #include "io/stream_reader.h" +#ifdef NBT_HAVE_ZLIB #include "io/ozlibstream.h" #include "io/izlibstream.h" +#endif #include "nbt_tags.h" #include <iostream> #include <fstream> @@ -247,6 +249,7 @@ public: TS_ASSERT_EQUALS(orig_pair.first, written_pair.first); TS_ASSERT(*orig_pair.second == *written_pair.second); +#ifdef NBT_HAVE_ZLIB //Now with gzip compression sstr.str(""); zlib::ozlibstream ogzs(sstr, -1, true); @@ -260,5 +263,6 @@ public: TS_ASSERT(igzs); TS_ASSERT_EQUALS(orig_pair.first, written_pair.first); TS_ASSERT(*orig_pair.second == *written_pair.second); +#endif } }; |
