mirror of
https://github.com/curl/curl.git
synced 2025-09-21 03:22:41 +03:00
tests: align some Windows sleep defines with each other
This commit is contained in:
parent
9aaca09044
commit
3c1b9145c7
|
@ -36,7 +36,7 @@
|
||||||
#define DNS_TIMEOUT 1
|
#define DNS_TIMEOUT 1
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#define sleep(s) Sleep(s * 1000)
|
#define sleep(sec) Sleep ((sec)*1000)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int debug_callback(CURL *curl, curl_infotype info, char *msg,
|
static int debug_callback(CURL *curl, curl_infotype info, char *msg,
|
||||||
|
|
|
@ -107,7 +107,7 @@ int test(char *URL)
|
||||||
curl_multi_fdset() doc. */
|
curl_multi_fdset() doc. */
|
||||||
|
|
||||||
if(maxfd == -1) {
|
if(maxfd == -1) {
|
||||||
#ifdef _WIN32
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
Sleep(100);
|
Sleep(100);
|
||||||
rc = 0;
|
rc = 0;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -37,7 +37,7 @@ extern const char *path;
|
||||||
/* global variable, log file name */
|
/* global variable, log file name */
|
||||||
extern const char *serverlogfile;
|
extern const char *serverlogfile;
|
||||||
|
|
||||||
#ifdef WIN32
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ extern const char *serverlogfile;
|
||||||
#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 */
|
#endif /* WIN32 or _WIN32 */
|
||||||
|
|
||||||
#ifdef USE_WINSOCK
|
#ifdef USE_WINSOCK
|
||||||
void win32_init(void);
|
void win32_init(void);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user