aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core/USBInterrupt.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-06-20 04:32:34 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-06-20 04:32:34 +0000
commitd784baaa3a97929fc9a7fed7fff84ff7b0f5bc17 (patch)
tree47153f33a68172f62b6daec089e64fc717863d2f /LUFA/Drivers/USB/Core/USBInterrupt.h
parentdab7e06a4a914ebc67dd6a9a28c0987b49703c88 (diff)
downloadlufa-d784baaa3a97929fc9a7fed7fff84ff7b0f5bc17.tar.gz
lufa-d784baaa3a97929fc9a7fed7fff84ff7b0f5bc17.tar.bz2
lufa-d784baaa3a97929fc9a7fed7fff84ff7b0f5bc17.zip
Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was disabled, and a USE_*_DESCRIPTORS compile time option was not enabled on the AVR8s.
Add C++ compatibility to some header files currently missing extern "C" linkage.
Diffstat (limited to 'LUFA/Drivers/USB/Core/USBInterrupt.h')
-rw-r--r--LUFA/Drivers/USB/Core/USBInterrupt.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Core/USBInterrupt.h b/LUFA/Drivers/USB/Core/USBInterrupt.h
index 3217bda89..c1a2b6227 100644
--- a/LUFA/Drivers/USB/Core/USBInterrupt.h
+++ b/LUFA/Drivers/USB/Core/USBInterrupt.h
@@ -44,7 +44,12 @@
/* Includes: */
#include "../../../Common/Common.h"
#include "USBMode.h"
-
+
+ /* Enable C linkage for C++ Compilers: */
+ #if defined(__cplusplus)
+ extern "C" {
+ #endif
+
/* Preprocessor Checks: */
#if !defined(__INCLUDE_FROM_USB_DRIVER)
#error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.
@@ -57,5 +62,10 @@
#include "UC3/USBInterrupt_UC3.h"
#endif
+ /* Disable C linkage for C++ Compilers: */
+ #if defined(__cplusplus)
+ }
+ #endif
+
#endif