[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36052 - libmicrohttpd/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36052 - libmicrohttpd/src/include |
Date: |
Tue, 7 Jul 2015 20:32:53 +0200 |
Author: Karlson2k
Date: 2015-07-07 20:32:53 +0200 (Tue, 07 Jul 2015)
New Revision: 36052
Modified:
libmicrohttpd/src/include/platform.h
Log:
platform.h: correction of sleep() and usleep() replacements for W32
Modified: libmicrohttpd/src/include/platform.h
===================================================================
--- libmicrohttpd/src/include/platform.h 2015-07-07 18:32:45 UTC (rev
36051)
+++ libmicrohttpd/src/include/platform.h 2015-07-07 18:32:53 UTC (rev
36052)
@@ -154,8 +154,8 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <ws2tcpip.h>
-#define sleep(seconds) (SleepEx((seconds)*1000, 1)/1000)
-#define usleep(useconds) (void)SleepEx((useconds)/1000, 1)
+#define sleep(seconds) ((SleepEx((seconds)*1000, 1)==0)?0:(seconds))
+#define usleep(useconds) ((SleepEx((useconds)/1000, 1)==0)?0:-1)
#endif
#if !defined(SHUT_WR) && defined(SD_SEND)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36052 - libmicrohttpd/src/include,
gnunet <=