From e64c8cce6276f33bf9024577ec7fff2eeeb22dba Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 11 Apr 2022 17:31:49 +0300 Subject: [PATCH] ci: bump size of EMPTY_STRUCT_DECLARATION's _dummy_pad field to 8 (a voidptr, instead of char) --- vlib/v/gen/c/cheaders.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/v/gen/c/cheaders.v b/vlib/v/gen/c/cheaders.v index f179ce908f..759e479dfe 100644 --- a/vlib/v/gen/c/cheaders.v +++ b/vlib/v/gen/c/cheaders.v @@ -258,8 +258,8 @@ static void __closure_destroy(void *closure) { const c_common_macros = ' #define EMPTY_VARG_INITIALIZATION 0 -#define EMPTY_STRUCT_DECLARATION -#define EMPTY_STRUCT_INITIALIZATION +#define EMPTY_STRUCT_INITIALIZATION 0 +#define EMPTY_STRUCT_DECLARATION voidptr _dummy_pad // Due to a tcc bug, the length of an array needs to be specified, but GCC crashes if it is... #define EMPTY_ARRAY_OF_ELEMS(x,n) (x[]) #define TCCSKIP(x) x @@ -301,7 +301,7 @@ const c_common_macros = ' #ifdef __TINYC__ #undef EMPTY_STRUCT_DECLARATION - #define EMPTY_STRUCT_DECLARATION char _dummy + #define EMPTY_STRUCT_DECLARATION voidptr _dummy_pad #undef EMPTY_ARRAY_OF_ELEMS #define EMPTY_ARRAY_OF_ELEMS(x,n) (x[n]) #undef __NOINLINE @@ -579,7 +579,7 @@ voidptr memdup(voidptr src, int sz); #undef EMPTY_STRUCT_DECLARATION #undef OPTION_CAST - #define EMPTY_STRUCT_DECLARATION char __pad + #define EMPTY_STRUCT_DECLARATION voidptr _dummy_pad #define OPTION_CAST(x) #undef __NOINLINE #undef __IRQHANDLER