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 5b1e32efefcd5404a2ea288e7fb387d9581e88a0..02e030605720ee4e7ee1c8f00faf800862024042 100644 (file)
@@ -75,6 +75,9 @@ static struct custom_operations generic_value_ops = {
   custom_hash_default,
   custom_serialize_default,
   custom_deserialize_default
   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) {
 };
 
 static value alloc_generic_value(LLVMGenericValueRef Ref) {
index a5985d9d2b04d3fab07d0eeee02f019ac80dfa45..c984bd154cc2707d09f93ba36b9bc5822aeeb4d3 100644 (file)
@@ -1277,6 +1277,9 @@ static struct custom_operations builder_ops = {
   custom_hash_default,
   custom_serialize_default,
   custom_deserialize_default
   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) {
 };
 
 static value alloc_builder(LLVMBuilderRef B) {