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:
Ludovic Rousseau
2013-02-18 20:26:46 +01:00
parent d8c3dcb056
commit 0ee67c5cb7
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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
View File
@@ -1 +1 @@
#define LIBUSB_NANO 10613
#define LIBUSB_NANO 10614