Permalink
Browse files

re-added guard to allow compilation under MinGW-gcc

Signed-off-by: Marcos Paulo Berteli Slomp <mslomp@gmail.com>
  • Loading branch information...
1 parent 9521ee6 commit b0913bf35daae9425e5f51affb66b41b5461a779 @slomp slomp committed with qdot Dec 26, 2010
Showing with 9 additions and 1 deletion.
  1. +9 −1 platform/windows/libusb10emu/libusb-1.0/libusb.h
@@ -1,4 +1,4 @@
-/*
+/*
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file
@@ -38,6 +38,10 @@
#define LIBUSBEMU 1
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
// gotta use "_t" suffix here...
struct libusb_context_t;
// ...otherwise C++ complains with such typedef declaration
@@ -163,4 +167,8 @@ enum libusb_error
LIBUSB_ERROR_OTHER = -99,
};
+#ifdef __cplusplus
+ }
+#endif
+
#endif//LIBUSB_1_0_INTERFACE_EMULATOR_FOR_LIBUSB_0_1_H

0 comments on commit b0913bf

Please sign in to comment.