<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- a/common/common.h
+++ b/common/common.h
@@ -25,15 +25,13 @@
 #ifdef _WINDOWS
 #include &lt;fstream&gt;  // NOLINT(readability/streams)
 #endif
+#include &lt;chrono&gt;
 #include &lt;string&gt;
+#include &lt;thread&gt;
 #include "common/Strings.h"
 
 inline void msleep( const int msec) {
-#ifdef _WINDOWS
-	Sleep(msec);
-#else
-	usleep(msec*1000);
-#endif
+	std::this_thread::sleep_for(std::chrono::milliseconds(msec));
 }
 
 inline void dlog(const char *fmt, ...) {
--- a/service/TellStick_libftdi.cpp
+++ b/service/TellStick_libftdi.cpp
@@ -8,7 +8,6 @@
 #include &lt;string.h&gt;
 #include &lt;stdlib.h&gt;
 #include &lt;stdio.h&gt;
-#include &lt;unistd.h&gt;
 #include &lt;list&gt;
 #include &lt;string&gt;
 
@@ -231,7 +230,7 @@ int TellStick::send( const std::string &amp;
 				return TELLSTICK_SUCCESS;
 			}
 		} else if(ret == 0) {  // No data available
-			usleep(100);
+			std::this_thread::sleep_for(std::chrono::microseconds(100));
 		} else {  // Error
 			Log::debug("Broken pipe on read");
 			return TELLSTICK_ERROR_BROKEN_PIPE;
</pre></body></html>