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:
parent
98b40c61bc
commit
24f0fec405
@ -40,7 +40,7 @@ extern const char *serverlogfile;
|
|||||||
|
|
||||||
extern const char *cmdfile;
|
extern const char *cmdfile;
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#ifdef WIN32
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
@ -49,9 +49,7 @@ extern const char *cmdfile;
|
|||||||
#undef perror
|
#undef perror
|
||||||
#define perror(m) win32_perror(m)
|
#define perror(m) win32_perror(m)
|
||||||
void win32_perror(const char *msg);
|
void win32_perror(const char *msg);
|
||||||
#endif /* WIN32 or _WIN32 */
|
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
void win32_init(void);
|
void win32_init(void);
|
||||||
void win32_cleanup(void);
|
void win32_cleanup(void);
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user