summaryrefslogtreecommitdiff
path: root/libusb/libusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'libusb/libusb.h')
-rw-r--r--libusb/libusb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h
index 1dc12f8..de31a56 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -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