libusb.h: use __linux__ instead of __linux
authorAdrian Bunk <bunk@debian.org>
Sun, 18 Jun 2017 20:45:54 +0000 (22:45 +0200)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Mon, 19 Jun 2017 16:25:21 +0000 (18:25 +0200)
The check was added since sys/time.h is not available on Windows,
but breaks on PowerPC where __linux is not defined by GCC in strict
standards modes.

Signed-off-by: Adrian Bunk <bunk@debian.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
libusb/libusb.h
libusb/version_nano.h

index c562690..f0f6d71 100644 (file)
@@ -54,7 +54,7 @@ typedef unsigned __int32  uint32_t;
 #include <sys/types.h>
 #endif
 
-#if defined(__linux) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__HAIKU__)
+#if defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__HAIKU__)
 #include <sys/time.h>
 #endif
 
index 766ee92..f2515f9 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11202
+#define LIBUSB_NANO 11203