Skip to content

Commit 0e380c9

Browse files
authored
flambda-backend: Add OCaml 4 feature macros (#1975)
1 parent 4a1e6dd commit 0e380c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

runtime4/caml/version.h.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@
2222
#undef OCAML_VERSION_EXTRA
2323
#undef OCAML_VERSION
2424
#undef OCAML_VERSION_STRING
25+
26+
/* Macros defining differences between Jane Street's version of OCaml and
27+
stock OCaml 5, which we will not port over to the OCaml 5 runtime.
28+
*/
29+
30+
#define JANE_STREET_HAS_OCAML_4_GC
31+
#define JANE_STREET_HAS_OCAML_4_PRNG
32+
#define JANE_STREET_HAS_NO_DOMAINS

0 commit comments

Comments
 (0)