diff --git a/components/wear_levelling/private_include/WL_Config.h b/components/wear_levelling/private_include/WL_Config.h index 3726d028bf..cec5cca5ad 100644 --- a/components/wear_levelling/private_include/WL_Config.h +++ b/components/wear_levelling/private_include/WL_Config.h @@ -38,6 +38,8 @@ public: } } wl_config_t; -_Static_assert((sizeof(wl_config_t) % 16) == 0, "Size of wl_config_t structure should be compatible with flash encryption"); +#ifndef _MSC_VER // MSVS has different format for this define +static_assert(sizeof(wl_config_t) % 16 == 0, "Size of wl_config_t structure should be compatible with flash encryption"); +#endif // _MSC_VER #endif // _WL_Config_H_ \ No newline at end of file