diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-05 08:42:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-05 08:42:41 +0000 |
commit | d27af79ee06388dc6d1ab31d95348a38cdfbeb91 (patch) | |
tree | e85d51e0371e11254f1d727658af7a5da2748d88 /win/inspircd_win32wrapper.cpp | |
parent | bc9aa036ce738f931f26d195adc7d49b04868b6e (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.cpp | 9 |
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); + } +} |