mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-03 16:09:32 +00:00
OPENGL: Added a temporary hack to fix compilation under Windows, after the latest changes to the SDL interface layer
This commit is contained in:
parent
fd61a83bb5
commit
ef695cb7dd
@ -31,6 +31,16 @@
|
|||||||
#undef ARRAYSIZE
|
#undef ARRAYSIZE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// HACK: At this point in Windows platforms, common/util.h has been included
|
||||||
|
// via common/rect.h (from backends/graphics/sdl/sdl-graphics.h), via
|
||||||
|
// backends/graphics/openglsdl/openglsdl-graphics.h. Thus, we end up with
|
||||||
|
// COMMON_UTIL_H defined, and ARRAYSIZE undefined (bad!). Therefore,
|
||||||
|
// ARRAYSIZE is undefined in openglsdl-graphics.cpp. This is a temporary
|
||||||
|
// hackish solution fo fix compilation under Windows.
|
||||||
|
#if !defined(ARRAYSIZE) && defined(COMMON_UTIL_H)
|
||||||
|
#define ARRAYSIZE(x) ((int)(sizeof(x) / sizeof(x[0])))
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(USE_GLES)
|
#if defined(USE_GLES)
|
||||||
#include <GLES/gl.h>
|
#include <GLES/gl.h>
|
||||||
#elif defined(SDL_BACKEND)
|
#elif defined(SDL_BACKEND)
|
||||||
|
Loading…
Reference in New Issue
Block a user