Skip to content

Commit

Permalink
include multi-byte extern
Browse files Browse the repository at this point in the history
to work around ocaml/ocaml#11449
  • Loading branch information
raphael-proust committed Sep 16, 2024
1 parent 6246f1b commit 0d5c510
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/unix/lwt_process_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
caml_win32_multi_byte_to_wide_char, at least as of ocaml 5.0 */
#define CAML_INTERNALS
#if OCAML_VERSION < 50000
#define caml_win32_multi_byte_to_wide_char win_multi_byte_to_wide_char
/* see https://github.com/ocsigen/lwt/pull/967#issuecomment-2273495094
* TL;DR: some OCaml upstream issue means this extern is not included on the
* windows, it's added explicitly here instead. */
CAMLextern int caml_win32_multi_byte_to_wide_char(const char* s,
int slen,
wchar_t *out,
int outlen);
#endif

#include <caml/alloc.h>
Expand Down

0 comments on commit 0d5c510

Please sign in to comment.