Skip to content

Commit

Permalink
fix build against older SDKs after commit 8ebef12.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Apr 1, 2022
1 parent 8ebef12 commit 575dadb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/core/windows/SDL_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@
#include "SDL_error.h"

#include <objbase.h> /* for CoInitialize/CoUninitialize (Win32 only) */
#if defined(HAVE_ROAPI_H)
#include <roapi.h> /* For RoInitialize/RoUninitialize (Win32 only) */
#else
typedef enum RO_INIT_TYPE {
RO_INIT_SINGLETHREADED = 0,
RO_INIT_MULTITHREADED = 1
} RO_INIT_TYPE;
#endif

#ifndef _WIN32_WINNT_VISTA
#define _WIN32_WINNT_VISTA 0x0600
Expand All @@ -38,6 +45,10 @@
#define _WIN32_WINNT_WIN8 0x0602
#endif

#ifndef LOAD_LIBRARY_SEARCH_SYSTEM32
#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800
#endif


/* Sets an error message based on an HRESULT */
int
Expand Down

0 comments on commit 575dadb

Please sign in to comment.