summaryrefslogtreecommitdiff
path: root/win/inspircd_win32wrapper.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-05 08:42:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-05 08:42:41 +0000
commitd27af79ee06388dc6d1ab31d95348a38cdfbeb91 (patch)
treee85d51e0371e11254f1d727658af7a5da2748d88 /win/inspircd_win32wrapper.cpp
parentbc9aa036ce738f931f26d195adc7d49b04868b6e (diff)
sql api and m_mysql compile fixes for windows
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10393 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win/inspircd_win32wrapper.cpp')
-rw-r--r--win/inspircd_win32wrapper.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp
index 7e72220e8..0b738d538 100644
--- a/win/inspircd_win32wrapper.cpp
+++ b/win/inspircd_win32wrapper.cpp
@@ -776,3 +776,12 @@ int getcpu()
pclsObj->Release();
return -1;
}
+
+void usleep(unsigned long usecs)
+{
+ if (usecs > 0UL)
+ {
+ unsigned long millis = ((usecs + 999UL) / 1000UL);
+ SleepEx(millis, false);
+ }
+}