Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was disabled...
[pub/USBasp.git] / LUFA / Drivers / Misc / RingBuffer.h
index 023cc25..c953638 100644 (file)
        /* Includes: */\r
                #include "../../Common/Common.h"\r
 \r
+       /* Enable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       extern "C" {\r
+               #endif\r
+\r
        /* Type Defines: */\r
                /** \brief Ring Buffer Management Structure.\r
                 *\r
                        return *Buffer->Out;\r
                }\r
 \r
+       /* Disable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       }\r
+               #endif\r
+\r
 #endif\r
 \r
 /** @} */\r