From 1d41a5cda2fefe826877ee4445199af30aa188b7 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Sat, 26 Jan 2008 17:22:53 +0000 Subject: [PATCH] C++ header safety Pointed out by JF --- libusb/libusb.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libusb/libusb.h b/libusb/libusb.h index e3b7a8d..bff48f2 100644 --- a/libusb/libusb.h +++ b/libusb/libusb.h @@ -24,6 +24,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* standard USB stuff */ /* Device and/or Interface Class codes */ @@ -261,4 +265,8 @@ int libusb_interrupt_transfer(libusb_dev_handle *devh, struct libusb_bulk_transfer *transfer, int *transferred, unsigned int timeout); +#ifdef __cplusplus +} +#endif + #endif