bootutil: Prevent the redefinition of ASSERT
Some OSes may also define the ASSERT macro.
@@ -117,8 +117,10 @@ extern "C" {
#include "mcuboot_config/mcuboot_assert.h"
#else
#include <assert.h>
+#ifndef ASSERT
#define ASSERT assert
#endif
+#endif
struct boot_swap_state {
uint8_t magic; /* One of the BOOT_MAGIC_[...] values. */
