@@ -191,9 +191,15 @@ let patch_directive name directive =
191191
192192let mdx_load = patch_directive " load" (Directive_string (Topdirs. dir_load std_err))
193193let mdx_use = patch_directive " use" (Directive_string (Topdirs. dir_use std_err))
194- let mdx_use_output = patch_directive " use_output" (Directive_string (Topdirs. dir_use_output std_err))
195194let mdx_install_printer = patch_directive " install_printer" (Directive_ident (Topdirs. dir_install_printer std_err))
196195let mdx_remove_printer = patch_directive " remove_printer" (Directive_ident (Topdirs. dir_remove_printer std_err))
196+ #endif
197+
198+ #if OCAML_VERSION > (4 , 11 , 0 ) && OCAML_VERSION < (4 , 14 , 0 )
199+ let mdx_use_output = patch_directive " use_output" (Directive_string (Topdirs. dir_use_output std_err))
200+ #endif
201+
202+ #if OCAML_VERSION < (4 , 13 , 0 )
197203let mdx_trace = patch_directive " trace" (Directive_ident (Topdirs. dir_trace std_err))
198204let mdx_untrace = patch_directive " untrace" (Directive_ident (Topdirs. dir_untrace std_err))
199205let mdx_untrace_all = patch_directive " untrace_all" (Directive_none (Topdirs. dir_untrace_all std_err))
@@ -204,9 +210,13 @@ let redirect_directive directive =
204210#if OCAML_VERSION < (4 , 14 , 0 )
205211 | "load" -> mdx_load
206212 | "use" -> mdx_use
207- | "use_output" -> mdx_use_output
208213 | "install_printer" -> mdx_install_printer
209214 | "remove_printer" -> mdx_remove_printer
215+ #endif
216+ #if OCAML_VERSION > (4 , 11 , 0 ) && OCAML_VERSION < (4 , 14 , 0 )
217+ | "use_output" -> mdx_use_output
218+ #endif
219+ #if OCAML_VERSION < (4 , 13 , 0 )
210220 | "trace" -> mdx_trace
211221 | "untrace" -> mdx_untrace
212222 | "untrace_all" -> mdx_untrace_all
0 commit comments