add support for ocaml 3.12
authorNuno Lopes <nunoplopes@sapo.pt>
Sun, 2 Sep 2012 14:42:56 +0000 (14:42 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Sun, 2 Sep 2012 14:42:56 +0000 (14:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163096 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/ocaml/executionengine/executionengine_ocaml.c
bindings/ocaml/llvm/llvm_ocaml.c

index 5b1e32e..02e0306 100644 (file)
@@ -75,6 +75,9 @@ static struct custom_operations generic_value_ops = {
   custom_hash_default,
   custom_serialize_default,
   custom_deserialize_default
+#ifdef custom_compare_ext_default
+  , custom_compare_ext_default
+#endif
 };
 
 static value alloc_generic_value(LLVMGenericValueRef Ref) {
index a5985d9..c984bd1 100644 (file)
@@ -1277,6 +1277,9 @@ static struct custom_operations builder_ops = {
   custom_hash_default,
   custom_serialize_default,
   custom_deserialize_default
+#ifdef custom_compare_ext_default
+  , custom_compare_ext_default
+#endif
 };
 
 static value alloc_builder(LLVMBuilderRef B) {