fix: compatibility for CCArrayLabels

This commit is contained in:
Simon Cruanes 2018-04-09 08:46:36 -05:00
parent 33d3ee114c
commit 7c56bd747e
2 changed files with 8 additions and 0 deletions

View file

@ -1,6 +1,9 @@
(* This file is free software, part of containers. See file "license" for more details. *)
(* fallback function *)
external make_float : int -> float array = "caml_make_float_vect"
include CCArray
(*$inject

View file

@ -13,6 +13,10 @@ type 'a printer = Format.formatter -> 'a -> unit
(** {2 Arrays} *)
(**/**)
external make_float : int -> float array = "caml_make_float_vect" (* compat *)
(**/**)
include module type of struct include ArrayLabels end
type 'a t = 'a array
@ -310,3 +314,4 @@ val sort_generic :
(** Sort the array, without allocating (eats stack space though). Performance
might be lower than {!Array.sort}.
@since 0.14 *)