Skip to content

Commit

Permalink
Defining bool_t as bool.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-gillespie committed Oct 11, 2024
1 parent 2e34472 commit 02883a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Libraries/Cordio/platform/include/pal_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ extern "C" {
#include <stddef.h>

#ifndef bool_t
#define bool_t uint8_t
#define bool_t bool
#endif

#ifndef bool
#define bool _Bool
#endif

#ifndef FALSE
Expand Down
4 changes: 3 additions & 1 deletion Libraries/Cordio/wsf/include/wsf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ extern "C" {
#include <stddef.h>

#ifndef bool_t
#define bool_t uint8_t
#define bool_t bool
#endif

/* New library uses bool instead of bool_t */
#ifndef bool
#define bool _Bool
#endif

#ifndef FALSE
#define FALSE 0
Expand Down

0 comments on commit 02883a5

Please sign in to comment.