Windows: fix compiler warning
authorLudovic Rousseau <ludovic.rousseau@gmail.com>
Mon, 18 Feb 2013 19:26:46 +0000 (20:26 +0100)
committerLudovic Rousseau <ludovic.rousseau@gmail.com>
Mon, 18 Feb 2013 19:26:46 +0000 (20:26 +0100)
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]

libusb/os/threads_windows.c
libusb/version_nano.h

index 393d498..161553f 100644 (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;
index abfab9c..2f97737 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10613
+#define LIBUSB_NANO 10614