summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 0feb3dbfd7..190f44f981 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -32,7 +32,10 @@ extern "C" {
#include "compile_time_macros.h"
#else
+/* If BUILD_ASSERT isn't already defined, make it a no-op */
+#ifndef BUILD_ASSERT
#define BUILD_ASSERT(_cond)
+#endif /* !BUILD_ASSERT */
#endif /* CHROMIUM_EC */
#ifdef __KERNEL__