From e629fa186254b48bb877dd0dcca03a759ab8342b Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 20 Jun 2011 04:32:34 +0000 Subject: 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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1818 d5102386-fcda-11dd-9fdb-3debd5008f28 --- LUFA/Drivers/USB/Core/EndpointStream.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'LUFA/Drivers/USB/Core/EndpointStream.h') diff --git a/LUFA/Drivers/USB/Core/EndpointStream.h b/LUFA/Drivers/USB/Core/EndpointStream.h index 54f2d839..296dfe51 100644 --- a/LUFA/Drivers/USB/Core/EndpointStream.h +++ b/LUFA/Drivers/USB/Core/EndpointStream.h @@ -53,6 +53,11 @@ #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. @@ -105,7 +110,12 @@ #elif (ARCH == ARCH_UC3) #include "UC3/EndpointStream_UC3.h" #endif - + + /* Disable C linkage for C++ Compilers: */ + #if defined(__cplusplus) + } + #endif + #endif /** @} */ -- cgit v1.2.3