From ea995b1694e2af30a9dea1a1dadaa0658540d848 Mon Sep 17 00:00:00 2001
From: L zard <[EMAIL REDACTED]>
Date: Mon, 21 Jul 2025 19:33:56 +0200
Subject: [PATCH] `build_config_windows`: define `HAVE_STDARG/STDDEF_H` outside
of condition. They are defined in both `#if HAVE_LIBC` and its `#else`
anyway. [sdl-ci-filter msvc-*]
---
include/build_config/SDL_build_config_windows.h | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/include/build_config/SDL_build_config_windows.h b/include/build_config/SDL_build_config_windows.h
index 4272d9b094a83..2e5a0d5cdecd2 100644
--- a/include/build_config/SDL_build_config_windows.h
+++ b/include/build_config/SDL_build_config_windows.h
@@ -114,6 +114,9 @@ typedef unsigned int uintptr_t;
# define SDL_DISABLE_AVX 1
#endif
+#define HAVE_STDARG_H 1
+#define HAVE_STDDEF_H 1
+
/* This can be disabled to avoid C runtime dependencies and manifest requirements */
#ifndef HAVE_LIBC
#define HAVE_LIBC 1
@@ -125,8 +128,6 @@ typedef unsigned int uintptr_t;
#define HAVE_LIMITS_H 1
#define HAVE_MATH_H 1
#define HAVE_SIGNAL_H 1
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
@@ -213,10 +214,7 @@ typedef unsigned int uintptr_t;
#if _MSC_VER >= 1400
#define HAVE__FSEEKI64 1
#endif
-#endif /* _MSC_VER */
-#else
-#define HAVE_STDARG_H 1
-#define HAVE_STDDEF_H 1
+#endif /* _MSC_VER */
#endif
/* Enable various audio drivers */