]> granicus.if.org Git - esp-idf/commitdiff
Compiler dependency included for tests.
authorDmitry <Dmitry@espressif.com>
Fri, 9 Mar 2018 05:40:24 +0000 (08:40 +0300)
committerDmitry <Dmitry@espressif.com>
Fri, 9 Mar 2018 05:40:24 +0000 (08:40 +0300)
components/wear_levelling/private_include/WL_Config.h

index 3726d028bfcbbc98f652d51c933162f32d9af1c3..cec5cca5adde25e83c66b30dafedcf722b3780ef 100644 (file)
@@ -38,6 +38,8 @@ public:
     }\r
 } wl_config_t;\r
 \r
-_Static_assert((sizeof(wl_config_t) % 16) == 0, "Size of wl_config_t structure should be compatible with flash encryption");\r
+#ifndef _MSC_VER // MSVS has different format for this define\r
+static_assert(sizeof(wl_config_t) % 16 == 0, "Size of wl_config_t structure should be compatible with flash encryption");\r
+#endif // _MSC_VER\r
 \r
 #endif // _WL_Config_H_
\ No newline at end of file