mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-23 04:06:25 -04:00
+ 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…
x
Reference in New Issue
Block a user