]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/glib/use-libiconv-on-windows.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / glib / use-libiconv-on-windows.patch
CommitLineData
1e59de90
TL
1diff --git a/glib/gconvert.c b/glib/gconvert.c
2index 3deac78..134ded9 100644
3--- a/glib/gconvert.c
4+++ b/glib/gconvert.c
5@@ -30,7 +30,8 @@
6 #include <stdlib.h>
7
8 #ifdef G_OS_WIN32
9-#include "win_iconv.c"
10+#define USE_LIBICONV_GNU
11+#include <iconv.h>
12 #endif
13
14 #ifdef G_PLATFORM_WIN32
15diff --git a/meson.build b/meson.build
16index d938ddf51..2ba256115 100644
17--- a/meson.build
18+++ b/meson.build
19@@ -1914,7 +1914,8 @@ glibconfig_conf.set10('G_HAVE_GROWING_STACK', growing_stack)
20 # the built-in implementation
21 iconv_opt = get_option('iconv')
22 if host_system == 'windows'
23- libiconv = []
24+ libiconv = [cc.find_library('iconv')]
25+ found_iconv = true
26 # We have a #include "win_iconv.c" in gconvert.c on Windows, so we don't need
27 # any external library for it
28 if iconv_opt != 'auto'