mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
The #if to use static_assert() for BUILD_ASSERT() only checks whether compiler is in C++ mode, but does not check what C++ standard is being used. Since static_assert() is only valid since C++11, for compilers not supporting C++11 (XCC...), this will result in error. So add the correct #if to also check for C++ standard being used. Signed-off-by: Daniel Leung <daniel.leung@intel.com>