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 <unistd.h>
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
@ -186,7 +187,11 @@ int main(int argc, char **argv) {
|
||||
if (indexer != NULL) {
|
||||
indexer->start(contentPath, indexPath);
|
||||
while (indexer->isRunning()) {
|
||||
#ifndef _WIN32
|
||||
Sleep(1000);
|
||||
#else
|
||||
sleep(1);
|
||||
#endif
|
||||
}
|
||||
delete indexer;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user