mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-29 00:12:52 +00:00
CAP_ZLIB to tell whether we need ZLIB
This commit is contained in:
parent
33e6242f36
commit
8c87f123a0
14
sysconfig.h
14
sysconfig.h
@ -78,6 +78,10 @@
|
|||||||
#define CAP_THREAD (!ISMOBILE && !ISWEB)
|
#define CAP_THREAD (!ISMOBILE && !ISWEB)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CAP_ZLIB
|
||||||
|
#define CAP_ZLIB (MAXMDIM >= 4)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CAP_FRAMELIMIT (!ISMOBWEB)
|
#define CAP_FRAMELIMIT (!ISMOBWEB)
|
||||||
|
|
||||||
#if ISMOBILE
|
#if ISMOBILE
|
||||||
@ -168,6 +172,10 @@
|
|||||||
#define CAP_ODS 0
|
#define CAP_ODS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MAXMDIM
|
||||||
|
#define MAXMDIM 4
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CAP_TEXTURE
|
#ifndef CAP_TEXTURE
|
||||||
#define CAP_TEXTURE (CAP_GL && (CAP_PNG || CAP_SDL_IMG) && !ISMINI)
|
#define CAP_TEXTURE (CAP_GL && (CAP_PNG || CAP_SDL_IMG) && !ISMINI)
|
||||||
#endif
|
#endif
|
||||||
@ -426,7 +434,9 @@ extern "C" {
|
|||||||
#include <complex>
|
#include <complex>
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
|
#if CAP_ZLIB
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CAP_THREAD
|
#if CAP_THREAD
|
||||||
#if WINDOWS
|
#if WINDOWS
|
||||||
@ -494,10 +504,6 @@ union SDL_Event;
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MAXMDIM
|
|
||||||
#define MAXMDIM 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CAP_GEOMETRY
|
#ifndef CAP_GEOMETRY
|
||||||
#define CAP_GEOMETRY (!(ISMINI))
|
#define CAP_GEOMETRY (!(ISMINI))
|
||||||
#endif
|
#endif
|
||||||
|
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--; }
|
while(n >= 0) { digits[n] = int(d); d -= digits[n]; d *= BASE; n--; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CAP_ZLIB
|
||||||
/* compression/decompression */
|
/* compression/decompression */
|
||||||
|
|
||||||
EX string compress_string(string s) {
|
EX string compress_string(string s) {
|
||||||
@ -563,5 +564,6 @@ EX string decompress_string(string s) {
|
|||||||
println(hlog, isize(s), " -> ", isize(out));
|
println(hlog, isize(s), " -> ", isize(out));
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user