Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was disabled...
[pub/lufa.git] / LUFA / Common / Common.h
index 5635a4e..02fc98f 100644 (file)
                #include "Attributes.h"
                #include "BoardTypes.h"
                
                #include "Attributes.h"
                #include "BoardTypes.h"
                
+       /* Enable C linkage for C++ Compilers: */
+               #if defined(__cplusplus)
+                       extern "C" {
+               #endif
+
        /* Architecture specific utility includes: */
                #if defined(__DOXYGEN__)
                        /** Type define for an unsigned integer the same width as the selected architecture's machine register.
        /* Architecture specific utility includes: */
                #if defined(__DOXYGEN__)
                        /** Type define for an unsigned integer the same width as the selected architecture's machine register.
                                GCC_MEMORY_BARRIER();
                        }
 
                                GCC_MEMORY_BARRIER();
                        }
 
+       /* Disable C linkage for C++ Compilers: */
+               #if defined(__cplusplus)
+                       }
+               #endif
+
 #endif
 
 /** @} */
 #endif
 
 /** @} */