Skip to content

Commit bcd55a5

Browse files
committed
fw_if: do not redefine MIN
Add an ifndef guard to avoid redefining MIN, similarly to how it's already done for ARRAY_SIZE. This prevents potential collisions with the upstream MIN depending on the include order. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 5fffeab commit bcd55a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fw_if/umac_if/inc/common/fmac_api_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323

2424
#include <patch_info.h>
2525

26+
#ifndef MIN
2627
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
28+
#endif
2729

2830
/**
2931
* @brief De-initialize the UMAC IF layer.

0 commit comments

Comments
 (0)