[libsoup/wip/nacho/soup-extern: 1/4] Provide a _SOUP_EXTERN so we ensure the methods get externalized
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/nacho/soup-extern: 1/4] Provide a _SOUP_EXTERN so we ensure the methods get externalized
- Date: Mon, 26 Oct 2015 16:44:10 +0000 (UTC)
commit ccf44920990ebd277b3b98b568590432421cda8f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Oct 26 15:47:13 2015 +0100
Provide a _SOUP_EXTERN so we ensure the methods get externalized
Change the defines to endup using _SOUP_EXTERN so we get
them externalized.
libsoup/soup-version.h.in | 94 +++++++++++++++++++++++---------------------
1 files changed, 49 insertions(+), 45 deletions(-)
---
diff --git a/libsoup/soup-version.h.in b/libsoup/soup-version.h.in
index 2a48eed..3cb1ea3 100644
--- a/libsoup/soup-version.h.in
+++ b/libsoup/soup-version.h.in
@@ -22,6 +22,10 @@ G_BEGIN_DECLS
(SOUP_MAJOR_VERSION == (major) && SOUP_MINOR_VERSION == (minor) && \
SOUP_MICRO_VERSION >= (micro)))
+#ifndef _SOUP_EXTERN
+#define _SOUP_EXTERN extern
+#endif
+
guint soup_get_major_version (void);
guint soup_get_minor_version (void);
@@ -95,210 +99,210 @@ gboolean soup_check_version (guint major,
# define SOUP_DEPRECATED_IN_2_24 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_24_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_24
-# define SOUP_DEPRECATED_IN_2_24_FOR(f)
+# define SOUP_DEPRECATED_IN_2_24 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_24_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_24
# define SOUP_AVAILABLE_IN_2_24 GLIB_UNAVAILABLE(2, 24)
#else
-# define SOUP_AVAILABLE_IN_2_24
+# define SOUP_AVAILABLE_IN_2_24 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_26
# define SOUP_DEPRECATED_IN_2_26 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_26_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_26
-# define SOUP_DEPRECATED_IN_2_26_FOR(f)
+# define SOUP_DEPRECATED_IN_2_26 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_26_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_26
# define SOUP_AVAILABLE_IN_2_26 GLIB_UNAVAILABLE(2, 26)
#else
-# define SOUP_AVAILABLE_IN_2_26
+# define SOUP_AVAILABLE_IN_2_26 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_28
# define SOUP_DEPRECATED_IN_2_28 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_28_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_28
-# define SOUP_DEPRECATED_IN_2_28_FOR(f)
+# define SOUP_DEPRECATED_IN_2_28 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_28_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_28
# define SOUP_AVAILABLE_IN_2_28 GLIB_UNAVAILABLE(2, 28)
#else
-# define SOUP_AVAILABLE_IN_2_28
+# define SOUP_AVAILABLE_IN_2_28 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_30
# define SOUP_DEPRECATED_IN_2_30 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_30_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_30
-# define SOUP_DEPRECATED_IN_2_30_FOR(f)
+# define SOUP_DEPRECATED_IN_2_30 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_30_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_30
# define SOUP_AVAILABLE_IN_2_30 GLIB_UNAVAILABLE(2, 30)
#else
-# define SOUP_AVAILABLE_IN_2_30
+# define SOUP_AVAILABLE_IN_2_30 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_32
# define SOUP_DEPRECATED_IN_2_32 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_32_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_32
-# define SOUP_DEPRECATED_IN_2_32_FOR(f)
+# define SOUP_DEPRECATED_IN_2_32 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_32_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_32
# define SOUP_AVAILABLE_IN_2_32 GLIB_UNAVAILABLE(2, 32)
#else
-# define SOUP_AVAILABLE_IN_2_32
+# define SOUP_AVAILABLE_IN_2_32 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_34
# define SOUP_DEPRECATED_IN_2_34 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_34_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_34
-# define SOUP_DEPRECATED_IN_2_34_FOR(f)
+# define SOUP_DEPRECATED_IN_2_34 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_34_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_34
# define SOUP_AVAILABLE_IN_2_34 GLIB_UNAVAILABLE(2, 34)
#else
-# define SOUP_AVAILABLE_IN_2_34
+# define SOUP_AVAILABLE_IN_2_34 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_36
# define SOUP_DEPRECATED_IN_2_36 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_36_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_36
-# define SOUP_DEPRECATED_IN_2_36_FOR(f)
+# define SOUP_DEPRECATED_IN_2_36 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_36_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_36
# define SOUP_AVAILABLE_IN_2_36 GLIB_UNAVAILABLE(2, 36)
#else
-# define SOUP_AVAILABLE_IN_2_36
+# define SOUP_AVAILABLE_IN_2_36 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_38
# define SOUP_DEPRECATED_IN_2_38 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_38_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_38
-# define SOUP_DEPRECATED_IN_2_38_FOR(f)
+# define SOUP_DEPRECATED_IN_2_38 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_38_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_38
# define SOUP_AVAILABLE_IN_2_38 GLIB_UNAVAILABLE(2, 38)
#else
-# define SOUP_AVAILABLE_IN_2_38
+# define SOUP_AVAILABLE_IN_2_38 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_40
# define SOUP_DEPRECATED_IN_2_40 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_40_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_40
-# define SOUP_DEPRECATED_IN_2_40_FOR(f)
+# define SOUP_DEPRECATED_IN_2_40 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_40_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_40
# define SOUP_AVAILABLE_IN_2_40 GLIB_UNAVAILABLE(2, 40)
#else
-# define SOUP_AVAILABLE_IN_2_40
+# define SOUP_AVAILABLE_IN_2_40 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_42
# define SOUP_DEPRECATED_IN_2_42 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_42_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_42
-# define SOUP_DEPRECATED_IN_2_42_FOR(f)
+# define SOUP_DEPRECATED_IN_2_42 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_42_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_42
# define SOUP_AVAILABLE_IN_2_42 GLIB_UNAVAILABLE(2, 42)
#else
-# define SOUP_AVAILABLE_IN_2_42
+# define SOUP_AVAILABLE_IN_2_42 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_44
# define SOUP_DEPRECATED_IN_2_44 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_44_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_44
-# define SOUP_DEPRECATED_IN_2_44_FOR(f)
+# define SOUP_DEPRECATED_IN_2_44 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_44_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_44
# define SOUP_AVAILABLE_IN_2_44 GLIB_UNAVAILABLE(2, 44)
#else
-# define SOUP_AVAILABLE_IN_2_44
+# define SOUP_AVAILABLE_IN_2_44 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_46
# define SOUP_DEPRECATED_IN_2_46 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_46_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_46
-# define SOUP_DEPRECATED_IN_2_46_FOR(f)
+# define SOUP_DEPRECATED_IN_2_46 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_46_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_46
# define SOUP_AVAILABLE_IN_2_46 GLIB_UNAVAILABLE(2, 46)
#else
-# define SOUP_AVAILABLE_IN_2_46
+# define SOUP_AVAILABLE_IN_2_46 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_48
# define SOUP_DEPRECATED_IN_2_48 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_48_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_48
-# define SOUP_DEPRECATED_IN_2_48_FOR(f)
+# define SOUP_DEPRECATED_IN_2_48 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_48_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_48
# define SOUP_AVAILABLE_IN_2_48 GLIB_UNAVAILABLE(2, 48)
#else
-# define SOUP_AVAILABLE_IN_2_48
+# define SOUP_AVAILABLE_IN_2_48 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_50
# define SOUP_DEPRECATED_IN_2_50 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_50_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_50
-# define SOUP_DEPRECATED_IN_2_50_FOR(f)
+# define SOUP_DEPRECATED_IN_2_50 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_50_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_50
# define SOUP_AVAILABLE_IN_2_50 GLIB_UNAVAILABLE(2, 50)
#else
-# define SOUP_AVAILABLE_IN_2_50
+# define SOUP_AVAILABLE_IN_2_50 _SOUP_EXTERN
#endif
#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_52
# define SOUP_DEPRECATED_IN_2_52 GLIB_DEPRECATED
# define SOUP_DEPRECATED_IN_2_52_FOR(f) GLIB_DEPRECATED_FOR(f)
#else
-# define SOUP_DEPRECATED_IN_2_52
-# define SOUP_DEPRECATED_IN_2_52_FOR(f)
+# define SOUP_DEPRECATED_IN_2_52 _SOUP_EXTERN
+# define SOUP_DEPRECATED_IN_2_52_FOR(f) _SOUP_EXTERN
#endif
#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_52
# define SOUP_AVAILABLE_IN_2_52 GLIB_UNAVAILABLE(2, 52)
#else
-# define SOUP_AVAILABLE_IN_2_52
+# define SOUP_AVAILABLE_IN_2_52 _SOUP_EXTERN
#endif
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]