Skip to content

Commit 4e9b9d1

Browse files
jeremiediminopmetzger
authored andcommitted
Fix compat with 403
Signed-off-by: Jeremie Dimino <[email protected]>
1 parent fa3880d commit 4e9b9d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib/uTop_main.ml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ let bind_expressions name phrase =
608608
| Handling of [@@toplevel_printer] attributes |
609609
+-----------------------------------------------------------------+ *)
610610

611+
#if OCAML_VERSION >= (4, 04, 0)
611612
let execute_phrase =
612613
let new_cmis = ref []in
613614

@@ -655,6 +656,12 @@ let execute_phrase =
655656
acknowledge_new_cmis ();
656657
res
657658

659+
#else
660+
661+
let execute_phrase = Toploop.execute_phrase
662+
663+
#endif
664+
658665
(* +-----------------------------------------------------------------+
659666
| Main loop |
660667
+-----------------------------------------------------------------+ *)

0 commit comments

Comments
 (0)