Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was disabled...
[pub/lufa.git] / LUFA / Drivers / USB / Core / AVR8 / OTG_AVR8.h
index e9b92c0..03b816e 100644 (file)
        /* Includes: */
                #include "../../../../Common/Common.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.
                                return ((OTGCON & (1 << HNPREQ)) ? true : false);
                        }
 
+       /* Disable C linkage for C++ Compilers: */
+               #if defined(__cplusplus)
+                       }
+               #endif
+
 #endif
 
 /** @} */