diff options
author | Gavin Howard <gavin@yzena.com> | 2021-07-27 21:55:42 -0600 |
---|---|---|
committer | Gavin Howard <gavin@yzena.com> | 2021-07-27 21:55:42 -0600 |
commit | c2e9107d796b47cf47286df24beefa0450dbfaad (patch) | |
tree | 0bb8036eee38c1c010032856ff012489d5dbfdd9 /include | |
parent | a64921866868cdb6eaa652089e211ab57f4f9e22 (diff) | |
download | platform_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 'include')
-rw-r--r-- | include/program.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/program.h b/include/program.h index 418c2039..83c0c754 100644 --- a/include/program.h +++ b/include/program.h @@ -36,6 +36,7 @@ #ifndef BC_PROGRAM_H #define BC_PROGRAM_H +#include <assert.h> #include <stddef.h> #include <status.h> @@ -431,8 +432,8 @@ extern const char bc_program_esc_seqs[]; #define BC_PROG_LBLS_SIZE (sizeof(bc_program_inst_lbls) / sizeof(void*)) #define BC_PROG_LBLS_ASSERT \ - _Static_assert(BC_PROG_LBLS_SIZE == BC_INST_INVALID + 1,\ - "bc_program_inst_lbls[] mismatches the instructions") + static_assert(BC_PROG_LBLS_SIZE == BC_INST_INVALID + 1,\ + "bc_program_inst_lbls[] mismatches the instructions") #else // BC_C11 |