X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/381dd0d49079dfc1e356eacbb061853c8f365165..55aadf97d5d2bd86f2a0c3a53d4608c0cf96471e:/LUFA/Drivers/USB/Core/OTG.h diff --git a/LUFA/Drivers/USB/Core/OTG.h b/LUFA/Drivers/USB/Core/OTG.h index fee7c5340..69caa7c59 100644 --- a/LUFA/Drivers/USB/Core/OTG.h +++ b/LUFA/Drivers/USB/Core/OTG.h @@ -52,7 +52,13 @@ /* Includes: */ #include "../../../Common/Common.h" + #include "USBMode.h" + /* Enable C linkage for C++ Compilers: */ + #if defined(__cplusplus) + extern "C" { + #endif + /* Preprocessor Checks: */ #if !defined(__INCLUDE_FROM_USB_DRIVER) #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead. @@ -63,6 +69,11 @@ #include "AVR8/OTG_AVR8.h" #endif + /* Disable C linkage for C++ Compilers: */ + #if defined(__cplusplus) + } + #endif + #endif /** @} */