Skip to content

Commit

Permalink
Runtime: temporary fix for zstd in ocaml 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Dec 4, 2023
1 parent 894d6aa commit 1af5eae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/zstd.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ return function decompress(dat, buf) {

//Provides: caml_decompress_input
//Version: > 5.1.0
//Version: < 5.2.0
var caml_decompress_input = null

//Provides: caml_decompress_input
Expand All @@ -670,6 +671,11 @@ function caml_zstd_initialize(unit) {
//Requires: zstd_decompress
var caml_decompress_input = zstd_decompress;

//Provides: caml_decompress_input
//Version: >= 5.2
//Requires: zstd_decompress
var caml_decompress_input = zstd_decompress;


//Provides: caml_compression_available
//Requires: caml_decompress_input
Expand Down

0 comments on commit 1af5eae

Please sign in to comment.