From d784baaa3a97929fc9a7fed7fff84ff7b0f5bc17 Mon Sep 17 00:00:00 2001 From: Dean Camera 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. --- LUFA/Drivers/Misc/RingBuffer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'LUFA/Drivers/Misc') diff --git a/LUFA/Drivers/Misc/RingBuffer.h b/LUFA/Drivers/Misc/RingBuffer.h index 023cc25c4..c95363871 100644 --- a/LUFA/Drivers/Misc/RingBuffer.h +++ b/LUFA/Drivers/Misc/RingBuffer.h @@ -96,6 +96,11 @@ /* Includes: */ #include "../../Common/Common.h" + /* Enable C linkage for C++ Compilers: */ + #if defined(__cplusplus) + extern "C" { + #endif + /* Type Defines: */ /** \brief Ring Buffer Management Structure. * @@ -261,6 +266,11 @@ return *Buffer->Out; } + /* Disable C linkage for C++ Compilers: */ + #if defined(__cplusplus) + } + #endif + #endif /** @} */ -- cgit v1.2.3