We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6246f1b commit 0d5c510Copy full SHA for 0d5c510
src/unix/lwt_process_stubs.c
@@ -13,7 +13,13 @@
13
caml_win32_multi_byte_to_wide_char, at least as of ocaml 5.0 */
14
#define CAML_INTERNALS
15
#if OCAML_VERSION < 50000
16
-#define caml_win32_multi_byte_to_wide_char win_multi_byte_to_wide_char
+/* 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);
23
#endif
24
25
#include <caml/alloc.h>
0 commit comments