This file is part of MXE. See LICENSE.md for licensing information.

Contains ad hoc patches for cross building.

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: v1993 <v19930312@gmail.com>
Date: Mon, 6 Dec 2021 18:01:42 +0300
Subject: [PATCH 1/2] Explicitly set extern for exported variables


diff --git a/libsoup/soup-version.h.in b/libsoup/soup-version.h.in
index 1111111..2222222 100644
--- a/libsoup/soup-version.h.in
+++ b/libsoup/soup-version.h.in
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
 #  ifdef G_PLATFORM_WIN32
 #    ifdef LIBSOUP_COMPILATION
 #      ifdef DLL_EXPORT
-#        define SOUP_VAR __declspec(dllexport)
+#        define SOUP_VAR extern __declspec(dllexport)
 #      else /* !DLL_EXPORT */
 #        define SOUP_VAR extern
 #      endif /* !DLL_EXPORT */

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: v1993 <v19930312@gmail.com>
Date: Mon, 6 Dec 2021 21:55:36 +0300
Subject: [PATCH 2/2] Diable building examples


diff --git a/meson.build b/meson.build
index 1111111..2222222 100644
--- a/meson.build
+++ b/meson.build
@@ -392,7 +392,6 @@ subdir('libsoup')
 if find_program('xgettext', required : false).found()
   subdir('po')
 endif
-subdir('examples')
 
 if get_option('tests')
   subdir('tests')
