--- linuxsampler/trunk/src/common/global.h 2008/12/14 13:55:43 1807 +++ linuxsampler/trunk/src/common/global.h 2008/12/14 15:43:18 1808 @@ -37,7 +37,13 @@ #if defined(WIN32) #include + +// modern MinGW has usleep +#if __MINGW32_MAJOR_VERSION < 3 || \ + (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION < 15) #define usleep(a) Sleep(a/1000) +#endif + #define sleep(a) Sleep(a*1000) typedef unsigned int uint; // FIXME: define proper functions which do proper alignement under Win32