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/tusb.h | |
| parent | 06c16ae03f0c6b70283392b057137ac20fcb4d82 (diff) | |
added _cplusplus extern wrapper
Diffstat (limited to 'tinyusb/tusb.h')
| -rw-r--r-- | tinyusb/tusb.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tinyusb/tusb.h b/tinyusb/tusb.h index 7e5f2beb5..2c219e58d 100644 --- a/tinyusb/tusb.h +++ b/tinyusb/tusb.h @@ -35,8 +35,12 @@ * This file is part of the tiny usb stack. */ -#ifndef TUSB_H_ -#define TUSB_H_ +#ifndef _TUSB_H_ +#define _TUSB_H_ + +#ifdef __cplusplus + extern "C" { +#endif #include "common/common.h" #include "tusb_cfg.h" @@ -45,4 +49,8 @@ #include "device/dcd.h" #endif -#endif /* TUSB_H_ */ +#ifdef __cplusplus + } +#endif + +#endif /* _TUSB_H_ */ |
