X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/944e0d2009832f152006031f1aeb99f3ed014bc5..55aadf97d5d2bd86f2a0c3a53d4608c0cf96471e:/LUFA/Drivers/USB/Core/Endpoint.h diff --git a/LUFA/Drivers/USB/Core/Endpoint.h b/LUFA/Drivers/USB/Core/Endpoint.h index 10b2b9c93..d61c5b13f 100644 --- a/LUFA/Drivers/USB/Core/Endpoint.h +++ b/LUFA/Drivers/USB/Core/Endpoint.h @@ -45,7 +45,7 @@ /** \ingroup Group_EndpointRW * \defgroup Group_EndpointPrimitiveRW Read/Write of Primitive Data Types - * \brief Endpoint data primative read/write definitions. + * \brief Endpoint data primitive read/write definitions. * * Functions, macros, variables, enums and types related to data reading and writing of primitive data types * from and to endpoints. @@ -76,6 +76,11 @@ #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. @@ -105,6 +110,11 @@ #include "UC3/Endpoint_UC3.h" #endif + /* Disable C linkage for C++ Compilers: */ + #if defined(__cplusplus) + } + #endif + #endif /** @} */