Skip to content

Commit 7f0b00e

Browse files
committed
Compiler dependency included for tests.
1 parent 9753933 commit 7f0b00e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/wear_levelling/private_include/WL_Config.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ typedef struct WL_Config_s {
3838
}
3939
} wl_config_t;
4040

41-
_Static_assert((sizeof(wl_config_t) % 16) == 0, "Size of wl_config_t structure should be compatible with flash encryption");
41+
#ifndef _MSC_VER // MSVS has different format for this define
42+
static_assert(sizeof(wl_config_t) % 16 == 0, "Size of wl_config_t structure should be compatible with flash encryption");
43+
#endif // _MSC_VER
4244

4345
#endif // _WL_Config_H_

0 commit comments

Comments
 (0)