- [Psy-x] add custom defines for Raspberry PI

This commit is contained in:
Ilya Shurumov 2021-04-29 23:53:25 +06:00
parent eeda7537aa
commit c2ebeec44d
2 changed files with 5 additions and 2 deletions

View File

@ -4,9 +4,12 @@
/*
* Platform specific emulator setup
*/
#if (defined(_WIN32) || defined(__APPLE__) || defined(__linux__)) && !defined(__ANDROID__) && !defined(__EMSCRIPTEN__)
#if (defined(_WIN32) || defined(__APPLE__) || defined(__linux__)) && !defined(__ANDROID__) && !defined(__EMSCRIPTEN__) && !defined(__RPI__)
# define RENDERER_OGL
# define USE_GLAD
#elif defined(__RPI__)
# define RENDERER_OGLES
# define OGLES_VERSION (3)
#elif defined(__EMSCRIPTEN__)
# define RENDERER_OGLES
# define OGLES_VERSION (3)

View File

@ -15,7 +15,7 @@
# include <emscripten/emscripten.h>
# include <emscripten/html5.h>
# include <SDL2/SDL.h>
#elif defined(_WINDOWS) || defined(__MINGW32__) || defined(__linux__) || defined(__ANDROID__)
#elif defined(_WINDOWS) || defined(__MINGW32__) || defined(__linux__) || defined(__ANDROID__) || defined(__RPI__)
# include <SDL.h>
#endif