console-server: Add BUILD_ASSERT_OR_ZERO

Introduce the common BUILD_ASSERT_OR_ZERO, matching BUILD_ASSERT, which
allows use in file scope.

Change-Id: Ic88760bfdcfcb05468147fbc133a1a05427f886c
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
diff --git a/console-server.h b/console-server.h
index 3de3ece..efbfce8 100644
--- a/console-server.h
+++ b/console-server.h
@@ -246,3 +246,5 @@
 	do {                                                                   \
 		char __c[(c) ? 1 : -1] __attribute__((unused));                \
 	} while (0)
+
+#define BUILD_ASSERT_OR_ZERO(c) (sizeof(char[(c) ? 1 : -1]) - 1)