mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-21 00:16:04 -04:00
Windows: fix compiler warning
libusb/os/threads_windows.c: In function 'usbi_cond_timedwait': libusb/os/threads_windows.c:190:2: warning: nested extern declaration of 'epoch_time' [-Wnested-externs]
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
#define usbi_sleep(ms) SleepEx(ms, TRUE)
|
||||
#endif
|
||||
|
||||
extern const uint64_t epoch_time;
|
||||
|
||||
int usbi_mutex_init(usbi_mutex_t *mutex,
|
||||
const usbi_mutexattr_t *attr) {
|
||||
UNUSED(attr);
|
||||
@@ -187,7 +189,6 @@ int usbi_cond_timedwait(usbi_cond_t *cond,
|
||||
struct timeval targ_time, cur_time, delta_time;
|
||||
struct timespec cur_time_ns;
|
||||
DWORD millis;
|
||||
extern const uint64_t epoch_time;
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
SYSTEMTIME st;
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 10613
|
||||
#define LIBUSB_NANO 10614
|
||||
|
||||
Reference in New Issue
Block a user