aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common/Endianness.h
diff options
context:
space:
mode:
Diffstat (limited to 'LUFA/Common/Endianness.h')
-rw-r--r--LUFA/Common/Endianness.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/LUFA/Common/Endianness.h b/LUFA/Common/Endianness.h
index 115d054f2..58f8012c1 100644
--- a/LUFA/Common/Endianness.h
+++ b/LUFA/Common/Endianness.h
@@ -56,6 +56,11 @@
#ifndef __LUFA_ENDIANNESS_H__
#define __LUFA_ENDIANNESS_H__
+ /* Enable C linkage for C++ Compilers: */
+ #if defined(__cplusplus)
+ extern "C" {
+ #endif
+
/* Preprocessor Checks: */
#if !defined(__INCLUDE_FROM_COMMON_H)
#error Do not include this file directly. Include LUFA/Common/Common.h instead to gain this functionality.
@@ -461,6 +466,11 @@
}
}
+ /* Disable C linkage for C++ Compilers: */
+ #if defined(__cplusplus)
+ }
+ #endif
+
#endif
/** @} */