Fixed building on Windows with SDL_VIDEO=OFF

Fixes https://github.com/libsdl-org/SDL/issues/6562
This commit is contained in:
Sam Lantinga
2022-11-29 09:26:29 -08:00
parent b7cc4dce70
commit 2d24baaad4
3 changed files with 59 additions and 0 deletions

View File

@@ -42,7 +42,11 @@
#define CONVERT_MAGNITUDE(x) (((x)*10000) / 0x7FFF)
/* external variables referenced. */
#ifdef SDL_VIDEO_DRIVER_WINDOWS
extern HWND SDL_HelperWindow;
#else
static const HWND SDL_HelperWindow = NULL;
#endif
/* local variables */
static SDL_bool coinitialized = SDL_FALSE;