aboutsummaryrefslogtreecommitdiffstats
path: root/core/usb/usb_lib/usb_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/usb/usb_lib/usb_type.h')
-rw-r--r--core/usb/usb_lib/usb_type.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/usb/usb_lib/usb_type.h b/core/usb/usb_lib/usb_type.h
index 9e428b9..44b1f8c 100644
--- a/core/usb/usb_lib/usb_type.h
+++ b/core/usb/usb_lib/usb_type.h
@@ -17,6 +17,10 @@
#ifndef __USB_TYPE_H
#define __USB_TYPE_H
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
#ifndef NULL
@@ -54,7 +58,7 @@ typedef enum
{
FALSE = 0, TRUE = !FALSE
}
-bool;
+USB_Bool;
typedef enum { RESET = 0, SET = !RESET } FlagStatus, ITStatus;
@@ -67,6 +71,10 @@ typedef enum { ERROR = 0, SUCCESS = !ERROR} ErrorStatus;
/* Exported functions ------------------------------------------------------- */
/* External variables --------------------------------------------------------*/
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* __USB_TYPE_H */
/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/