From 7f0b00ef9b627ba28c7268be458d2c5704f53c26 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 9 Mar 2018 08:40:24 +0300 Subject: [PATCH] Compiler dependency included for tests. --- components/wear_levelling/private_include/WL_Config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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