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 {