Skip to content

Commit ea995b1

Browse files
Lzardslouken
authored andcommitted
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-*]
1 parent a977a11 commit ea995b1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

include/build_config/SDL_build_config_windows.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ typedef unsigned int uintptr_t;
114114
# define SDL_DISABLE_AVX 1
115115
#endif
116116

117+
#define HAVE_STDARG_H 1
118+
#define HAVE_STDDEF_H 1
119+
117120
/* This can be disabled to avoid C runtime dependencies and manifest requirements */
118121
#ifndef HAVE_LIBC
119122
#define HAVE_LIBC 1
@@ -125,8 +128,6 @@ typedef unsigned int uintptr_t;
125128
#define HAVE_LIMITS_H 1
126129
#define HAVE_MATH_H 1
127130
#define HAVE_SIGNAL_H 1
128-
#define HAVE_STDARG_H 1
129-
#define HAVE_STDDEF_H 1
130131
#define HAVE_STDIO_H 1
131132
#define HAVE_STDLIB_H 1
132133
#define HAVE_STRING_H 1
@@ -213,10 +214,7 @@ typedef unsigned int uintptr_t;
213214
#if _MSC_VER >= 1400
214215
#define HAVE__FSEEKI64 1
215216
#endif
216-
#endif /* _MSC_VER */
217-
#else
218-
#define HAVE_STDARG_H 1
219-
#define HAVE_STDDEF_H 1
217+
#endif /* _MSC_VER */
220218
#endif
221219

222220
/* Enable various audio drivers */

0 commit comments

Comments
 (0)