Commit ed434f33 authored by Jamie McCrae's avatar Jamie McCrae Committed by Jamie
Browse files

boot: bootutil: Fix clash of STRUCT_PACKED definition

Fixes an issue whereby another module might have declared this
by undefining it if it's already set

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 33ad4973
Loading
Loading
Loading
Loading
+4 −0
Changes for boot/bootutil/include/bootutil/image.h: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,6 +36,10 @@
extern "C" {
#endif

#if defined(STRUCT_PACKED)
#undef STRUCT_PACKED
#endif

#if defined(__IAR_SYSTEMS_ICC__)
#define STRUCT_PACKED __packed struct
#else