mte/unikernel/duniverse/ocaml-base64/config/config.ml

8 lines
227 B
OCaml
Raw Normal View History

2025-11-11 02:07:51 +01:00
let parse s = Scanf.sscanf s "%d.%d" (fun major minor -> (major, minor))
let () =
let version = parse Sys.ocaml_version in
if version >= (4, 7)
then print_string "unsafe_stable.ml"
else print_string "unsafe_pre407.ml"