Skip to content

Commit

Permalink
copy extern definition to work around upstream issue
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-proust committed Sep 16, 2024
1 parent 6246f1b commit b8a722f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/unix/lwt_process_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
#if OCAML_VERSION < 50000
#define caml_win32_multi_byte_to_wide_char win_multi_byte_to_wide_char
#endif
#if OCAML_VERSION = 52000
/* 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>
#include <caml/fail.h>
Expand Down

0 comments on commit b8a722f

Please sign in to comment.