Merge pull request #3483 from ssbl/dead-code-fix

Problem: unused Windows-specific code in sleep_ms
This commit is contained in:
Luca Boccassi 2019-04-24 21:53:01 +01:00 committed by GitHub
commit 501f9d8da4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,10 +77,7 @@ static int sleep_ms (unsigned int ms_)
{
if (ms_ == 0)
return 0;
#if defined ZMQ_HAVE_WINDOWS
Sleep (ms_ > 0 ? ms_ : INFINITE);
return 0;
#elif defined ZMQ_HAVE_ANDROID
#if defined ZMQ_HAVE_ANDROID
usleep (ms_ * 1000);
return 0;
#elif defined ZMQ_HAVE_VXWORKS