mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-15 14:27:37 +00:00
CAP_ZLIB to tell whether we need ZLIB
This commit is contained in:
14
sysconfig.h
14
sysconfig.h
@@ -78,6 +78,10 @@
|
||||
#define CAP_THREAD (!ISMOBILE && !ISWEB)
|
||||
#endif
|
||||
|
||||
#ifndef CAP_ZLIB
|
||||
#define CAP_ZLIB (MAXMDIM >= 4)
|
||||
#endif
|
||||
|
||||
#define CAP_FRAMELIMIT (!ISMOBWEB)
|
||||
|
||||
#if ISMOBILE
|
||||
@@ -168,6 +172,10 @@
|
||||
#define CAP_ODS 0
|
||||
#endif
|
||||
|
||||
#ifndef MAXMDIM
|
||||
#define MAXMDIM 4
|
||||
#endif
|
||||
|
||||
#ifndef CAP_TEXTURE
|
||||
#define CAP_TEXTURE (CAP_GL && (CAP_PNG || CAP_SDL_IMG) && !ISMINI)
|
||||
#endif
|
||||
@@ -426,7 +434,9 @@ extern "C" {
|
||||
#include <complex>
|
||||
#include <new>
|
||||
|
||||
#if CAP_ZLIB
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
#if CAP_THREAD
|
||||
#if WINDOWS
|
||||
@@ -494,10 +504,6 @@ union SDL_Event;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MAXMDIM
|
||||
#define MAXMDIM 4
|
||||
#endif
|
||||
|
||||
#ifndef CAP_GEOMETRY
|
||||
#define CAP_GEOMETRY (!(ISMINI))
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user