X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_misc.c;h=36e3490a12a04d2fadaf4de1016538aea3013a3f;hp=23fb4b553ea28d35bbf51d86768386bbe2a11bff;hb=bebb37d8185572d3766b7517ae8357bcc89227f8;hpb=e1d5ca36e13696a2e87b618165669fc7c53709c1 diff --git a/src/php_http_misc.c b/src/php_http_misc.c index 23fb4b5..36e3490 100644 --- a/src/php_http_misc.c +++ b/src/php_http_misc.c @@ -19,11 +19,11 @@ void php_http_sleep(double s) { -#if defined(PHP_WIN32) +#if PHP_WIN32 Sleep((DWORD) PHP_HTTP_MSEC(s)); -#elif defined(HAVE_USLEEP) +#elif HAVE_USLEEP usleep(PHP_HTTP_USEC(s)); -#elif defined(HAVE_NANOSLEEP) +#elif HAVE_NANOSLEEP struct timespec req, rem; req.tv_sec = (time_t) s;