SDL: Fixed build on older Windows SDK

From d383299779bc0b19387ea6a6fff4bc7f99465e73 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 1 Feb 2024 20:48:53 -0800
Subject: [PATCH] Fixed build on older Windows SDK

---
 src/core/windows/SDL_windows.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/core/windows/SDL_windows.c b/src/core/windows/SDL_windows.c
index 37e685a3ab24..bc06f4d5ed66 100644
--- a/src/core/windows/SDL_windows.c
+++ b/src/core/windows/SDL_windows.c
@@ -49,6 +49,10 @@ typedef enum RO_INIT_TYPE
 #define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800
 #endif
 
+#ifndef WC_ERR_INVALID_CHARS
+#define WC_ERR_INVALID_CHARS 0x00000080
+#endif
+
 /* Sets an error message based on an HRESULT */
 int WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr)
 {