1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-20 00:31:23 +00:00

CAP_ZLIB to tell whether we need ZLIB

This commit is contained in:
Zeno Rogue
2020-02-15 14:10:49 +01:00
parent 33e6242f36
commit 8c87f123a0
2 changed files with 12 additions and 4 deletions

View File

@@ -523,6 +523,7 @@ bignum::bignum(ld d) {
while(n >= 0) { digits[n] = int(d); d -= digits[n]; d *= BASE; n--; }
}
#if CAP_ZLIB
/* compression/decompression */
EX string compress_string(string s) {
@@ -563,5 +564,6 @@ EX string decompress_string(string s) {
println(hlog, isize(s), " -> ", isize(out));
return out;
}
#endif
}