mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-25 13:19:59 -04:00
+ windows port
This commit is contained in:
parent
6251e429eb
commit
a6d062782f
@ -25,6 +25,7 @@
|
|||||||
#include <kiwix/cluceneIndexer.h>
|
#include <kiwix/cluceneIndexer.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#else
|
#else
|
||||||
|
#include <Windows.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -186,7 +187,11 @@ int main(int argc, char **argv) {
|
|||||||
if (indexer != NULL) {
|
if (indexer != NULL) {
|
||||||
indexer->start(contentPath, indexPath);
|
indexer->start(contentPath, indexPath);
|
||||||
while (indexer->isRunning()) {
|
while (indexer->isRunning()) {
|
||||||
|
#ifndef _WIN32
|
||||||
|
Sleep(1000);
|
||||||
|
#else
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
delete indexer;
|
delete indexer;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user