1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-02 02:37:55 +00:00

fixed some guards (in progress)

This commit is contained in:
Zeno Rogue
2020-07-03 14:42:33 +02:00
parent cbd0c1f934
commit 89585f004b
27 changed files with 169 additions and 65 deletions

View File

@@ -186,7 +186,7 @@
#endif
#ifndef CAP_MODEL
#define CAP_MODEL (!ISMOBWEB && !ISMINI)
#define CAP_MODEL (!ISMOBWEB && !ISMINI && CAP_SDL)
#endif
#ifndef CAP_SAVE
@@ -399,6 +399,7 @@ extern "C" {
#define CAP_GLEW (CAP_GL && !ISMOBILE && !ISMAC && !ISLINUX && !ISWEB)
#endif
#if CAP_GL
#if CAP_GLEW
#include <GL/glew.h>
#else
@@ -422,6 +423,10 @@ extern "C" {
#include <GL/glext.h>
#endif
#endif
#else
typedef int GLint;
typedef unsigned GLuint;
#endif
#include <functional>
#include <memory>
@@ -560,7 +565,7 @@ union SDL_Event;
#endif
#ifndef CAP_RAY
#define CAP_RAY (MAXMDIM >= 4 && !ISWEB && !ISMOBILE)
#define CAP_RAY (MAXMDIM >= 4 && !ISWEB && !ISMOBILE && CAP_GL)
#endif
#ifndef CAP_MEMORY_RESERVE