aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGavin Howard <gavin@yzena.com>2021-07-27 21:55:42 -0600
committerGavin Howard <gavin@yzena.com>2021-07-27 21:55:42 -0600
commitc2e9107d796b47cf47286df24beefa0450dbfaad (patch)
tree0bb8036eee38c1c010032856ff012489d5dbfdd9 /src
parenta64921866868cdb6eaa652089e211ab57f4f9e22 (diff)
downloadplatform_external_bc-c2e9107d796b47cf47286df24beefa0450dbfaad.tar.gz
platform_external_bc-c2e9107d796b47cf47286df24beefa0450dbfaad.tar.bz2
platform_external_bc-c2e9107d796b47cf47286df24beefa0450dbfaad.zip
Make static_assert work
Signed-off-by: Gavin Howard <gavin@yzena.com>
Diffstat (limited to 'src')
-rw-r--r--src/data.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c
index 16fe6395..0eaf7d69 100644
--- a/src/data.c
+++ b/src/data.c
@@ -33,6 +33,8 @@
*
*/
+#include <assert.h>
+
#include <opt.h>
#include <args.h>
#include <lex.h>
@@ -884,8 +886,8 @@ const size_t bc_lex_kws_len = sizeof(bc_lex_kws) / sizeof(BcLexKeyword);
// redefined_kws in BcVm, is correct. If it's correct under C11, it will be
// correct under C99, and I did not know any other way of ensuring they remained
// synchronized.
-_Static_assert(sizeof(bc_lex_kws) / sizeof(BcLexKeyword) == BC_LEX_NKWS,
- "BC_LEX_NKWS is wrong.");
+static_assert(sizeof(bc_lex_kws) / sizeof(BcLexKeyword) == BC_LEX_NKWS,
+ "BC_LEX_NKWS is wrong.");
#endif // BC_C11