[glib-networking/gtlshttp-dll-name: 18/18] gtlshttp.c: Correct libsoup DLL names for Visual Studio




commit 2a8f419cae084251b97d7b4108a6fb7883adde65
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Nov 15 17:40:38 2021 +0800

    gtlshttp.c: Correct libsoup DLL names for Visual Studio
    
    The Meson builds of libsoup under Visual Studio-like compilers give us
    soup-3.0-0.dll and soup-2.4-1.dll for libsoup-3.x and libsoup-2.x
    respectively, so make sure we look for the right DLL names.

 tls/base/gtlshttp.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/tls/base/gtlshttp.c b/tls/base/gtlshttp.c
index 79bdb72f..07334c6d 100644
--- a/tls/base/gtlshttp.c
+++ b/tls/base/gtlshttp.c
@@ -71,8 +71,13 @@ init_libsoup (void)
   }
 #else
 #ifdef G_OS_WIN32
+#ifdef _MSC_VER
+  libsoup_sonames[0] = "soup-3.0-0.dll";
+  libsoup_sonames[1] = "soup-2.4-1.dll";
+#else
   libsoup_sonames[0] = "libsoup-3.0.dll";
   libsoup_sonames[1] = "libsoup-2.4.dll";
+#endif
 #else
   libsoup_sonames[0] = LIBSOUP_3_SONAME;
   libsoup_sonames[1] = LIBSOUP_2_SONAME;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]