Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was disabled...
[pub/USBasp.git] / LUFA / Common / Endianness.h
index 115d054..58f8012 100644 (file)
 #ifndef __LUFA_ENDIANNESS_H__\r
 #define __LUFA_ENDIANNESS_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_COMMON_H)\r
                        #error Do not include this file directly. Include LUFA/Common/Common.h instead to gain this functionality.\r
                                }\r
                        }\r
 \r
+       /* Disable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       }\r
+               #endif\r
+\r
 #endif\r
 \r
 /** @} */\r