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
|
#ifdef _WIN32
|
||||||
Sleep(milliseconds);
|
Sleep(milliseconds);
|
||||||
#else
|
#else
|
||||||
sleep(1000 * milliseconds);
|
usleep(1000 * milliseconds);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,10 +20,14 @@
|
||||||
#ifndef KIWIX_OTHERTOOLS_H
|
#ifndef KIWIX_OTHERTOOLS_H
|
||||||
#define KIWIX_OTHERTOOLS_H
|
#define KIWIX_OTHERTOOLS_H
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <Windows.h>
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace kiwix {
|
namespace kiwix {
|
||||||
|
|
||||||
void sleep(unsigned int milliseconds);
|
void sleep(unsigned int milliseconds);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue