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-*]
This commit is contained in:
L zard
2025-07-21 19:33:56 +02:00
committed by Sam Lantinga
parent a977a11fa6
commit ea995b1694

View File

@@ -114,6 +114,9 @@ typedef unsigned int uintptr_t;
# define SDL_DISABLE_AVX 1 # define SDL_DISABLE_AVX 1
#endif #endif
#define HAVE_STDARG_H 1
#define HAVE_STDDEF_H 1
/* This can be disabled to avoid C runtime dependencies and manifest requirements */ /* This can be disabled to avoid C runtime dependencies and manifest requirements */
#ifndef HAVE_LIBC #ifndef HAVE_LIBC
#define HAVE_LIBC 1 #define HAVE_LIBC 1
@@ -125,8 +128,6 @@ typedef unsigned int uintptr_t;
#define HAVE_LIMITS_H 1 #define HAVE_LIMITS_H 1
#define HAVE_MATH_H 1 #define HAVE_MATH_H 1
#define HAVE_SIGNAL_H 1 #define HAVE_SIGNAL_H 1
#define HAVE_STDARG_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STDIO_H 1 #define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1 #define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1 #define HAVE_STRING_H 1
@@ -214,9 +215,6 @@ typedef unsigned int uintptr_t;
#define HAVE__FSEEKI64 1 #define HAVE__FSEEKI64 1
#endif #endif
#endif /* _MSC_VER */ #endif /* _MSC_VER */
#else
#define HAVE_STDARG_H 1
#define HAVE_STDDEF_H 1
#endif #endif
/* Enable various audio drivers */ /* Enable various audio drivers */