transport/hci_h4: fix compilation error

min() was not defined
This commit is contained in:
CW-B-W
2023-09-20 08:57:58 +02:00
committed by Szymon Janc
parent 829e47bba4
commit 0bfb9b2bd7
@@ -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