Windows build fix

This commit is contained in:
Chris Cannam
2022-06-14 16:47:06 +01:00
parent b86a4df152
commit 9ddb6b370a
2 changed files with 6 additions and 3 deletions

View File

@@ -49,7 +49,10 @@ using RubberBand::gettimeofday;
#endif
#ifdef _MSC_VER
using RubberBand::usleep;
#include <windows.h>
static void usleep(unsigned long usec) {
::Sleep(usec == 0 ? 0 : usec < 1000 ? 1 : usec / 1000);
}
#define strdup _strdup
#endif