unix,win: export wtf8 functions properly (#4437)
Mark them UV_EXTERN so they are visible on Windows. Fixes: https://github.com/libuv/libuv/issues/4436
This commit is contained in:
parent
e37539a46c
commit
2780b87d56
22
include/uv.h
22
include/uv.h
@ -1929,17 +1929,17 @@ struct uv_loop_s {
|
|||||||
UV_EXTERN void* uv_loop_get_data(const uv_loop_t*);
|
UV_EXTERN void* uv_loop_get_data(const uv_loop_t*);
|
||||||
UV_EXTERN void uv_loop_set_data(uv_loop_t*, void* data);
|
UV_EXTERN void uv_loop_set_data(uv_loop_t*, void* data);
|
||||||
|
|
||||||
/* String utilities needed internally for dealing with Windows. */
|
/* Unicode utilities needed for dealing with Windows. */
|
||||||
size_t uv_utf16_length_as_wtf8(const uint16_t* utf16,
|
UV_EXTERN size_t uv_utf16_length_as_wtf8(const uint16_t* utf16,
|
||||||
ssize_t utf16_len);
|
ssize_t utf16_len);
|
||||||
int uv_utf16_to_wtf8(const uint16_t* utf16,
|
UV_EXTERN int uv_utf16_to_wtf8(const uint16_t* utf16,
|
||||||
ssize_t utf16_len,
|
ssize_t utf16_len,
|
||||||
char** wtf8_ptr,
|
char** wtf8_ptr,
|
||||||
size_t* wtf8_len_ptr);
|
size_t* wtf8_len_ptr);
|
||||||
ssize_t uv_wtf8_length_as_utf16(const char* wtf8);
|
UV_EXTERN ssize_t uv_wtf8_length_as_utf16(const char* wtf8);
|
||||||
void uv_wtf8_to_utf16(const char* wtf8,
|
UV_EXTERN void uv_wtf8_to_utf16(const char* wtf8,
|
||||||
uint16_t* utf16,
|
uint16_t* utf16,
|
||||||
size_t utf16_len);
|
size_t utf16_len);
|
||||||
|
|
||||||
/* Don't export the private CPP symbols. */
|
/* Don't export the private CPP symbols. */
|
||||||
#undef UV_HANDLE_TYPE_PRIVATE
|
#undef UV_HANDLE_TYPE_PRIVATE
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user