Const should be declared static

Otherwise the C compiler complains about multiple
definitions of the same symbol
This commit is contained in:
Cédric Pasteur 2011-09-06 14:31:14 +02:00
parent f3e9d738a0
commit 2147402a20

View file

@ -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