From 29e10a7314161c65dbab2731149d72cda0c8b863 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sun, 6 Jan 2013 00:20:00 +0100 Subject: [PATCH] Fix a namespace collision under Windows --- src/BuildTiles/Main/main.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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