Browse Source

Fixed build on older Windows SDK

Sam Lantinga 1 year ago
parent
commit
d383299779
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/core/windows/SDL_windows.c

+ 4 - 0
src/core/windows/SDL_windows.c

@@ -49,6 +49,10 @@ typedef enum RO_INIT_TYPE
 #define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800
 #define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800
 #endif
 #endif
 
 
+#ifndef WC_ERR_INVALID_CHARS
+#define WC_ERR_INVALID_CHARS 0x00000080
+#endif
+
 /* Sets an error message based on an HRESULT */
 /* Sets an error message based on an HRESULT */
 int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr)
 int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr)
 {
 {