From d53d9dbf5d0f7c95b1d48b2a119e5ec8baad77a9 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sun, 16 Nov 2008 23:36:12 +0000 Subject: [PATCH] Fix mingw build (GCC 3.4.4) --- goldlib/gall/gtimall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goldlib/gall/gtimall.h b/goldlib/gall/gtimall.h index 7f541a1..c6f9649 100644 --- a/goldlib/gall/gtimall.h +++ b/goldlib/gall/gtimall.h @@ -207,7 +207,7 @@ inline time32_t gmktime(struct tm *timep) #if defined(__OS2__) inline void usleep(long duration) { DosSleep(duration); } -#elif defined(__MINGW32__) || defined(_MSC_VER) +#elif (defined(__MINGW32__) && __GNUC__*100+__GNUC_MINOR__ < 304) || defined(_MSC_VER) inline void usleep(long duration) { Sleep(duration); } #endif