diff --git a/src/BuildTiles/Main/main.cxx b/src/BuildTiles/Main/main.cxx index 1ae43398..469f18a3 100644 --- a/src/BuildTiles/Main/main.cxx +++ b/src/BuildTiles/Main/main.cxx @@ -24,7 +24,9 @@ #ifdef _MSC_VER # include -# define sleep(x) Sleep(x*1000) +# define tgSleep(x) Sleep(x*1000) +#else +# define tgSleep(x) sleep(x) #endif #include @@ -222,7 +224,7 @@ int main(int argc, char **argv) { } // wait for workqueue to empty while( wq[0].size() ) { - sleep( 5 ); + tgSleep( 5 ); } // wait for all threads to complete for (unsigned int i=0; i