Definition of MIN and MAX in crypto lib
Hello
File "STM32_Cryptographic/Inc/Common/macros.h" defines macros MIN and MAX without any "#ifndef" around. Thus compiler warnings "redefined" are generated, if the file is included by customer code after headers of BLE stack.
File STM32WPAN/ble/ble_common.h has following code:
#ifndef MAX
#define MAX( a, b ) (((a) > (b)) ? (a) : (b))
#endif
File STM32WPAN/stm32_wpan_common.h has following code:
#undef MAX
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
One of these codes should also be applied in macros.h of crypto lib (same for MIN etc).
Best regards
Paul
