summaryrefslogtreecommitdiff
path: root/win
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
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')
-rw-r--r--win/inspircd_win32wrapper.cpp9
-rw-r--r--win/inspircd_win32wrapper.h2
2 files changed, 11 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);
+ }
+}
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h
index 2935ba5c9..8b7b7d924 100644
--- a/win/inspircd_win32wrapper.h
+++ b/win/inspircd_win32wrapper.h
@@ -220,6 +220,8 @@ CoreExport bool initwmi();
CoreExport void donewmi();
CoreExport int getcpu();
+CoreExport void usleep(unsigned long usecs);
+
#endif