mirror of https://github.com/kiwix/libkiwix.git
+ Add necessary header includes
This commit is contained in:
parent
aeaede3834
commit
69684009e3
|
@ -23,6 +23,6 @@ void kiwix::sleep(unsigned int milliseconds) {
|
|||
#ifdef _WIN32
|
||||
Sleep(milliseconds);
|
||||
#else
|
||||
sleep(1000 * milliseconds);
|
||||
usleep(1000 * milliseconds);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -20,10 +20,14 @@
|
|||
#ifndef KIWIX_OTHERTOOLS_H
|
||||
#define KIWIX_OTHERTOOLS_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
namespace kiwix {
|
||||
|
||||
void sleep(unsigned int milliseconds);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue