Skip to content

Commit b8a722f

Browse files
copy extern definition to work around upstream issue
1 parent 6246f1b commit b8a722f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/unix/lwt_process_stubs.c

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
#if OCAML_VERSION < 50000
1616
#define caml_win32_multi_byte_to_wide_char win_multi_byte_to_wide_char
1717
#endif
18+
#if OCAML_VERSION = 52000
19+
/* see https://github.com/ocsigen/lwt/pull/967#issuecomment-2273495094
20+
* TL;DR: some OCaml upstream issue means this extern is not included on the
21+
* windows, it's added explicitly here instead. */
22+
CAMLextern int caml_win32_multi_byte_to_wide_char(const char* s,
23+
int slen,
24+
wchar_t *out,
25+
int outlen);
26+
#endif
1827

1928
#include <caml/alloc.h>
2029
#include <caml/fail.h>

0 commit comments

Comments
 (0)