[libsoup/fix-brotli-msvc] suop-brotli-decompressor.h: Fix build on Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/fix-brotli-msvc] suop-brotli-decompressor.h: Fix build on Visual Studio
- Date: Tue, 21 Apr 2020 05:49:00 +0000 (UTC)
commit 99677044f5c1b5c91a212aaed8effc491a6ded9a
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Apr 21 13:42:44 2020 +0800
suop-brotli-decompressor.h: Fix build on Visual Studio
A SOUP_AVAILABLE_IN_2_68 (which expands to __dllspec(dllexport) extern
was missed in the use of G_DECLARE_FINAL_TYPE (SoupBrotliDecompressor...),
which broke Visual Studio builds because the first prototype of
soup_brotli_decompressor_get_type() (that results from the
G_DECLARE_FINAL_TYPE macro) was not marked with __declspec(dllexport)
but the second one at line 35 is, which Visual Studio does not allow.
libsoup/soup-brotli-decompressor.h | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libsoup/soup-brotli-decompressor.h b/libsoup/soup-brotli-decompressor.h
index a730109f..7dade46c 100644
--- a/libsoup/soup-brotli-decompressor.h
+++ b/libsoup/soup-brotli-decompressor.h
@@ -26,6 +26,7 @@
G_BEGIN_DECLS
#define SOUP_TYPE_BROTLI_DECOMPRESSOR (soup_brotli_decompressor_get_type())
+SOUP_AVAILABLE_IN_2_68
G_DECLARE_FINAL_TYPE (SoupBrotliDecompressor, soup_brotli_decompressor, SOUP, BROTLI_DECOMPRESSOR, GObject)
SOUP_AVAILABLE_IN_2_68
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]