Commit 8c5ec5a6 authored by Gustavo Henrique Nihei's avatar Gustavo Henrique Nihei Committed by David Brown
Browse files

bootutil: Prevent the redefinition of ASSERT



Some OSes may also define the ASSERT macro.

Signed-off-by: default avatarGustavo Henrique Nihei <gustavo.nihei@espressif.com>
parent 82350d2b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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. */