summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-09-02 14:42:56 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-09-02 14:42:56 +0000
commit4d00161e0a047e0a15842360a0a8653dc4f2ed53 (patch)
tree920ea4ab25d07d4cef5a2fbcdfb64d6a53021132 /bindings
parent2d892c5a72cf6941234f4d48e92b4973aa79721b (diff)
add support for ocaml 3.12
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ocaml/executionengine/executionengine_ocaml.c3
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/bindings/ocaml/executionengine/executionengine_ocaml.c b/bindings/ocaml/executionengine/executionengine_ocaml.c
index 5b1e32efefc..02e03060572 100644
--- a/bindings/ocaml/executionengine/executionengine_ocaml.c
+++ b/bindings/ocaml/executionengine/executionengine_ocaml.c
@@ -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) {
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index a5985d9d2b0..c984bd154cc 100644
--- a/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/bindings/ocaml/llvm/llvm_ocaml.c
@@ -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) {