From 9bde90a401746dcecdab68a2fdb95659d16a3022 Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Sat, 16 Dec 2023 16:04:33 +0100 Subject: [PATCH] Add support for OCaml 5.x The compatibility macro was removed in OCaml #10863 --- src/secp256k1_wrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/secp256k1_wrap.c b/src/secp256k1_wrap.c index 2601d41..99b36e1 100644 --- a/src/secp256k1_wrap.c +++ b/src/secp256k1_wrap.c @@ -27,7 +27,7 @@ static struct custom_operations secp256k1_context_ops = { }; static value alloc_context (secp256k1_context *ctx) { - value ml_ctx = alloc_custom(&secp256k1_context_ops, sizeof(secp256k1_context *), 0, 1); + value ml_ctx = caml_alloc_custom(&secp256k1_context_ops, sizeof(secp256k1_context *), 0, 1); Context_val(ml_ctx) = ctx; return ml_ctx; }