mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04: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,16 +37,16 @@ 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>
|
||||||
|
|
||||||
#define sleep(sec) Sleep ((sec)*1000)
|
#define sleep(sec) Sleep ((sec)*1000)
|
||||||
|
|
||||||
#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