Skip to content

Commit

Permalink
nimble/transport: Fix undeclared function 'min' warning
Browse files Browse the repository at this point in the history
Fix build warning generated with llvm based compilers on a call to undeclared function 'min'.
  • Loading branch information
guy-m committed May 20, 2024
1 parent 04fea98 commit 501d72a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nimble/transport/common/hci_ipc/src/hci_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
#include <nimble/transport.h>
#include <nimble/transport/hci_ipc.h>

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

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

volatile struct hci_ipc_shm *g_ipc_shm;

static void
Expand Down

0 comments on commit 501d72a

Please sign in to comment.