Windows: Fix C4005 warning under VS2012 for inline.
authorAnthony Clay, ZarthCode LLC <anthony.clay@zarthcode.com>
Sun, 19 Aug 2012 19:19:40 +0000 (14:19 -0500)
committerPete Batard <pete@akeo.ie>
Mon, 20 Aug 2012 00:14:44 +0000 (01:14 +0100)
* Changed inline macro to not fire when using Visual Studio/C++,
  which attempts to redefine the macro - resulting in a C4005 warning.

libusb/libusb.h
libusb/version_nano.h

index 1dc12f8..de31a56 100644 (file)
@@ -23,7 +23,9 @@
 
 #ifdef _MSC_VER
 /* on MS environments, the inline keyword is available in C++ only */
+#if !defined(__cplusplus)
 #define inline __inline
+#endif
 /* ssize_t is also not available (copy/paste from MinGW) */
 #ifndef _SSIZE_T_DEFINED
 #define _SSIZE_T_DEFINED
index 1582ec7..c349cc2 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10548
+#define LIBUSB_NANO 10549