Const should be declared static
Otherwise the C compiler complains about multiple definitions of the same symbol
This commit is contained in:
parent
f3e9d738a0
commit
2147402a20
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ let pp_cdecl fmt cdecl = match cdecl with
|
|||
fprintf fmt "@[<v>%a %a(@[<hov>%a@]);@ @]@\n"
|
||||
pp_cty retty pp_string n pp_param_list args
|
||||
| Cdecl_constant (n, cty, ce) ->
|
||||
fprintf fmt "@[<v>const %a %a = %a;@ @]@\n"
|
||||
fprintf fmt "@[<v>static const %a %a = %a;@ @]@\n"
|
||||
pp_cty cty pp_string n pp_cconst_expr ce
|
||||
|
||||
let pp_cdef fmt cdef = match cdef with
|
||||
|
|
Loading…
Reference in a new issue