use stdbool.h to define bool type
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
parent
0da537ec69
commit
efa0baa458
1 changed files with 1 additions and 7 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include "usbh_config.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/* This must be placed around external function declaration for C++
|
||||
* support. */
|
||||
|
|
@ -39,13 +40,6 @@
|
|||
|
||||
BEGIN_DECLS
|
||||
|
||||
#ifndef bool
|
||||
#define bool _Bool
|
||||
#define false 0
|
||||
#define true 1
|
||||
#endif
|
||||
|
||||
|
||||
// set to -1 to unused items
|
||||
struct _usbh_dev_driver_info {
|
||||
int32_t deviceClass;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue