X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/dab7e06a4a914ebc67dd6a9a28c0987b49703c88..d784baaa3a97929fc9a7fed7fff84ff7b0f5bc17:/LUFA/Common/Common.h diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 5635a4ea9..02fc98fdc 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -75,6 +75,11 @@ #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. @@ -394,6 +399,11 @@ GCC_MEMORY_BARRIER(); } + /* Disable C linkage for C++ Compilers: */ + #if defined(__cplusplus) + } + #endif + #endif /** @} */