diff options
| author | hathach <[email protected]> | 2012-12-02 11:07:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2012-12-02 11:07:59 +0700 |
| commit | b36a85ad3625596ce57f1a9fc2ddde2ea98b33d8 (patch) | |
| tree | d73d19e9d96075369ffdb3f20a6878fdde0d51d6 /tinyusb/common/errors.h | |
| parent | a636d75fc6c8af025a5f5a6229bd02334f82e976 (diff) | |
add extern "C" for cpp
start to work on hal layer
Diffstat (limited to 'tinyusb/common/errors.h')
| -rw-r--r-- | tinyusb/common/errors.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tinyusb/common/errors.h b/tinyusb/common/errors.h index e9644bb3d..4a33aeb4f 100644 --- a/tinyusb/common/errors.h +++ b/tinyusb/common/errors.h @@ -49,6 +49,10 @@ #ifndef _TUSB_ERRORS_H_ #define _TUSB_ERRORS_H_ +#ifdef __cplusplus + extern "C" { +#endif + /** \enum TUSB_Error_t * \brief Error Code returned */ @@ -60,10 +64,6 @@ typedef enum { ERROR_COUNT }TUSB_Error_t; -#ifdef __cplusplus - extern "C" { -#endif - /// Enum to String for debugging purposes. Only available if \ref CFG_TUSB_DEBUG_LEVEL > 0 extern char const* const TUSB_ErrorStr[]; |
