Skip to content

Commit

Permalink
transport/hci_h4: fix compilation error
Browse files Browse the repository at this point in the history
min() was not defined
  • Loading branch information
CW-B-W authored and sjanc committed Sep 20, 2023
1 parent 829e47b commit 0bfb9b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nimble/transport/common/hci_h4/src/hci_h4.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
#include <nimble/transport.h>
#include <nimble/transport/hci_h4.h>

#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif

#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif

#define HCI_H4_SM_W4_PKT_TYPE 0
#define HCI_H4_SM_W4_HEADER 1
#define HCI_H4_SM_W4_PAYLOAD 2
Expand Down

0 comments on commit 0bfb9b2

Please sign in to comment.