mirror of https://github.com/libsdl-org/SDL.git
Fix build on non-3DS platforms
This commit is contained in:
parent
4543547d00
commit
3a56c10402
|
|
@ -160,6 +160,9 @@
|
|||
#ifndef SDL_VIDEO_RENDER_VITA_GXM
|
||||
#define SDL_VIDEO_RENDER_VITA_GXM 0
|
||||
#endif
|
||||
#ifndef SDL_VIDEO_RENDER_N3DS
|
||||
#define SDL_VIDEO_RENDER_N3DS 0
|
||||
#endif
|
||||
#else /* define all as 0 */
|
||||
#undef SDL_VIDEO_RENDER_SW
|
||||
#define SDL_VIDEO_RENDER_SW 0
|
||||
|
|
@ -185,6 +188,8 @@
|
|||
#define SDL_VIDEO_RENDER_PSP 0
|
||||
#undef SDL_VIDEO_RENDER_VITA_GXM
|
||||
#define SDL_VIDEO_RENDER_VITA_GXM 0
|
||||
#undef SDL_VIDEO_RENDER_N3DS
|
||||
#define SDL_VIDEO_RENDER_N3DS 0
|
||||
#endif /* SDL_RENDER_DISABLED */
|
||||
|
||||
#define SDL_HAS_RENDER_DRIVER \
|
||||
|
|
@ -199,7 +204,8 @@
|
|||
SDL_VIDEO_RENDER_DIRECTFB | \
|
||||
SDL_VIDEO_RENDER_PS2 | \
|
||||
SDL_VIDEO_RENDER_PSP | \
|
||||
SDL_VIDEO_RENDER_VITA_GXM)
|
||||
SDL_VIDEO_RENDER_VITA_GXM | \
|
||||
SDL_VIDEO_RENDER_N3DS)
|
||||
|
||||
#if !defined(SDL_RENDER_DISABLED) && !SDL_HAS_RENDER_DRIVER
|
||||
#error SDL_RENDER enabled without any backend drivers.
|
||||
|
|
|
|||
|
|
@ -19,17 +19,14 @@
|
|||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
#include "3ds/gfx.h"
|
||||
#include "3ds/services/gspgpu.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_N3DS
|
||||
#include "SDL_error.h"
|
||||
#include "SDL_hints.h"
|
||||
#include "SDL_pixels.h"
|
||||
#include "SDL_render.h"
|
||||
#include "SDL_stdinc.h"
|
||||
#include "SDL_video.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_N3DS
|
||||
|
||||
#include "SDL_hints.h"
|
||||
#include "../SDL_sysrender.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue