diff options
| author | hathach <[email protected]> | 2012-11-27 15:35:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2012-11-27 15:35:57 +0700 |
| commit | 829c8672bb238e37ba4c2ec9b7a3a3010453e6c0 (patch) | |
| tree | c891a4a3501885349714b5f430398204f78bfb35 /tinyusb/common/compiler/compiler_gcc.h | |
| parent | 06c16ae03f0c6b70283392b057137ac20fcb4d82 (diff) | |
added _cplusplus extern wrapper
Diffstat (limited to 'tinyusb/common/compiler/compiler_gcc.h')
| -rw-r--r-- | tinyusb/common/compiler/compiler_gcc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h index e2671764f..38ef5f20f 100644 --- a/tinyusb/common/compiler/compiler_gcc.h +++ b/tinyusb/common/compiler/compiler_gcc.h @@ -35,6 +35,10 @@ * This file is part of the tiny usb stack. */ +#ifdef __cplusplus + extern "C" { +#endif + #ifndef _TUSB_COMPILER_GCC_H_ #define _TUSB_COMPILER_GCC_H_ @@ -52,4 +56,8 @@ #define ATTR_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result)) #define ATTR_ALWAYS_INLINE __attribute__ ((always_inline)) +#ifdef __cplusplus + } +#endif + #endif /* _TUSB_COMPILER_GCC_H_ */ |
