From cd20c8c027714ac45231bc633c7087d3ee6dcae5 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Wed, 2 Apr 2014 17:08:33 +0200 Subject: [PATCH] + use now kiwix::sleep() --- src/installer/kiwix-install.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/installer/kiwix-install.cpp b/src/installer/kiwix-install.cpp index 61a14c4..4372233 100644 --- a/src/installer/kiwix-install.cpp +++ b/src/installer/kiwix-install.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2011 Emmanuel Engelhart + * Copyright 2011-2014 Emmanuel Engelhart * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,14 +20,6 @@ #include #include #include - -#ifndef _WIN32 -#include -#else -#include -#include -#endif - #include #include @@ -186,11 +178,7 @@ int main(int argc, char **argv) { indexer->setVerboseFlag(verboseFlag); indexer->start(contentPath, indexPath); while (indexer->isRunning()) { -#ifdef _WIN32 - Sleep(1000); -#else - sleep(1); -#endif + kiwix::sleep(1000); } delete indexer; } else {