Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was disabled...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / EndpointStream.h
index 54f2d83..296dfe5 100644 (file)
                #include "../../../Common/Common.h"\r
                #include "USBMode.h"\r
 \r
+       /* Enable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       extern "C" {\r
+               #endif\r
+\r
        /* Preprocessor Checks: */\r
                #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
                        #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.\r
                #elif (ARCH == ARCH_UC3)\r
                        #include "UC3/EndpointStream_UC3.h"\r
                #endif\r
-               \r
+\r
+       /* Disable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       }\r
+               #endif\r
+\r
 #endif\r
 \r
 /** @} */\r