Sleep is not defined on linux
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@725 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
df24bcb2c0
commit
c9754acc13
1 changed files with 5 additions and 1 deletions
|
@ -13,8 +13,12 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <loki/CachedFactory.h>
|
#include <loki/CachedFactory.h>
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
|
void Sleep(unsigned int t) { usleep(t);}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue