mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
builder: Don't redefine Val_none (OCaml 4.12).
CC virt_builder-setlocale-c.o
setlocale-c.c:38: error: "Val_none" redefined [-Werror]
38 | #define Val_none (Val_int (0))
|
In file included from /usr/lib64/ocaml/caml/alloc.h:24,
from setlocale-c.c:23:
/usr/lib64/ocaml/caml/mlvalues.h:395: note: this is the location of the previous definition
395 | #define Val_none Val_int(0)
|
This commit is contained in:
@@ -35,7 +35,9 @@ static const int lc_string_table[7] = {
|
||||
LC_MESSAGES
|
||||
};
|
||||
|
||||
#ifndef Val_none
|
||||
#define Val_none (Val_int (0))
|
||||
#endif
|
||||
|
||||
extern value virt_builder_setlocale (value val_category, value val_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user