tests/server/util.h: align WIN32 condition with util.c

There is no need to test for both _WIN32 and WIN32 as curl_setup.h
automatically defines the later if the first one is defined.

Also tests/server/util.c is only checking for WIN32 arouund the
implementation of win32_perror, so just defining _WIN32
would not be sufficient for a successful compilation.

Reviewed-by: Daniel Stenberg
Reviewed-by: Jay Satiro

Closes #8594
This commit is contained in:
Marc Hoersken 2022-03-15 00:16:46 +01:00
parent 98b40c61bc
commit 24f0fec405
No known key found for this signature in database
GPG Key ID: 61E03CBED7BC859E

View File

@ -40,7 +40,7 @@ extern const char *serverlogfile;
extern const char *cmdfile;
#if defined(WIN32) || defined(_WIN32)
#ifdef WIN32
#include <process.h>
#include <fcntl.h>
@ -49,9 +49,7 @@ extern const char *cmdfile;
#undef perror
#define perror(m) win32_perror(m)
void win32_perror(const char *msg);
#endif /* WIN32 or _WIN32 */
#ifdef WIN32
void win32_init(void);
void win32_cleanup(void);
#endif /* WIN32 */