Skip to content

Commit 0d5c510

Browse files
include multi-byte extern
to work around ocaml/ocaml#11449
1 parent 6246f1b commit 0d5c510

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/unix/lwt_process_stubs.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
caml_win32_multi_byte_to_wide_char, at least as of ocaml 5.0 */
1414
#define CAML_INTERNALS
1515
#if OCAML_VERSION < 50000
16-
#define caml_win32_multi_byte_to_wide_char win_multi_byte_to_wide_char
16+
/* see https://github.com/ocsigen/lwt/pull/967#issuecomment-2273495094
17+
* TL;DR: some OCaml upstream issue means this extern is not included on the
18+
* windows, it's added explicitly here instead. */
19+
CAMLextern int caml_win32_multi_byte_to_wide_char(const char* s,
20+
int slen,
21+
wchar_t *out,
22+
int outlen);
1723
#endif
1824

1925
#include <caml/alloc.h>

0 commit comments

Comments
 (0)