X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/944e0d2009832f152006031f1aeb99f3ed014bc5..77a9df36a77d2523dd2bc24fa17f9f04c6c175c5:/LUFA/Drivers/USB/Core/Endpoint.h diff --git a/LUFA/Drivers/USB/Core/Endpoint.h b/LUFA/Drivers/USB/Core/Endpoint.h index 10b2b9c93..877f0c138 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. @@ -103,6 +108,13 @@ #include "AVR8/Endpoint_AVR8.h" #elif (ARCH == ARCH_UC3) #include "UC3/Endpoint_UC3.h" + #elif (ARCH == ARCH_XMEGA) + #include "XMEGA/Endpoint_XMEGA.h" + #endif + + /* Disable C linkage for C++ Compilers: */ + #if defined(__cplusplus) + } #endif #endif