Check the SDL_VIDEO_RENDER_??? macros with #if instead of #ifdef
Allows users to disable them by defining them as 0. Closes https://github.com/libsdl-org/SDL/issues/8996 (manual port of https://github.com/libsdl-org/SDL/pull/9063 to SDL3.0)
This commit is contained in:
@@ -26,13 +26,13 @@
|
||||
#include "SDL_vitamessagebox.h"
|
||||
#include <psp2/message_dialog.h>
|
||||
|
||||
#ifdef SDL_VIDEO_RENDER_VITA_GXM
|
||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
||||
#include "../../render/vitagxm/SDL_render_vita_gxm_tools.h"
|
||||
#endif /* SDL_VIDEO_RENDER_VITA_GXM */
|
||||
|
||||
int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonID)
|
||||
{
|
||||
#ifdef SDL_VIDEO_RENDER_VITA_GXM
|
||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
||||
SceMsgDialogParam param;
|
||||
SceMsgDialogUserMessageParam msgParam;
|
||||
SceMsgDialogButtonsParam buttonParam;
|
||||
|
||||
Reference in New Issue
Block a user