Fix build warning with MSVC

This commit is contained in:
Cameron Cawley 2022-05-19 21:44:38 +01:00 committed by Ozkan Sezer
parent b0a27cb1de
commit b798e49c92
1 changed files with 16 additions and 16 deletions

View File

@ -35,22 +35,6 @@
#include "SDL_windowsshape.h" #include "SDL_windowsshape.h"
#include "SDL_windowsvulkan.h" #include "SDL_windowsvulkan.h"
#ifdef D3D_DEBUG_INFO
#ifndef D3D_SDK_VERSION
#define D3D_SDK_VERSION (32 | 0x80000000)
#endif
#ifndef D3D9b_SDK_VERSION
#define D3D9b_SDK_VERSION (31 | 0x80000000)
#endif
#else /**/
#ifndef D3D_SDK_VERSION
#define D3D_SDK_VERSION 32
#endif
#ifndef D3D9b_SDK_VERSION
#define D3D9b_SDK_VERSION 31
#endif
#endif
/* Initialization/Query functions */ /* Initialization/Query functions */
static int WIN_VideoInit(_THIS); static int WIN_VideoInit(_THIS);
static void WIN_VideoQuit(_THIS); static void WIN_VideoQuit(_THIS);
@ -281,6 +265,22 @@ WIN_VideoQuit(_THIS)
#define D3D_DEBUG_INFO #define D3D_DEBUG_INFO
#include <d3d9.h> #include <d3d9.h>
#ifdef D3D_DEBUG_INFO
#ifndef D3D_SDK_VERSION
#define D3D_SDK_VERSION (32 | 0x80000000)
#endif
#ifndef D3D9b_SDK_VERSION
#define D3D9b_SDK_VERSION (31 | 0x80000000)
#endif
#else /**/
#ifndef D3D_SDK_VERSION
#define D3D_SDK_VERSION 32
#endif
#ifndef D3D9b_SDK_VERSION
#define D3D9b_SDK_VERSION 31
#endif
#endif
SDL_bool SDL_bool
D3D_LoadDLL(void **pD3DDLL, IDirect3D9 **pDirect3D9Interface) D3D_LoadDLL(void **pD3DDLL, IDirect3D9 **pDirect3D9Interface)
{ {