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:
2
util.cpp
2
util.cpp
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user