Windows build fix
This commit is contained in:
@@ -49,7 +49,10 @@ using RubberBand::gettimeofday;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#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
|
#define strdup _strdup
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ program_sources = [
|
|||||||
|
|
||||||
if system == 'windows'
|
if system == 'windows'
|
||||||
program_sources += [
|
program_sources += [
|
||||||
'src/getopt/getopt.c',
|
'src/ext/getopt/getopt.c',
|
||||||
'src/getopt/getopt_long.c'
|
'src/ext/getopt/getopt_long.c'
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user