[glib/ebassi/enum-type-macros: 11/11] Add versioning to the new macros
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/ebassi/enum-type-macros: 11/11] Add versioning to the new macros
- Date: Wed, 29 Jun 2022 17:06:13 +0000 (UTC)
commit 6d52506d7dd4c867c1cdf4698461aec632b570e4
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jun 29 18:05:16 2022 +0100
Add versioning to the new macros
They are available in 2.74.
gobject/genums.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gobject/genums.h b/gobject/genums.h
index a28758a728..e54253c206 100644
--- a/gobject/genums.h
+++ b/gobject/genums.h
@@ -288,7 +288,9 @@ void g_flags_complete_type_info (GType g_flags_type,
*
* Since: 2.74
*/
-#define G_DEFINE_ENUM_VALUE(EnumValue, EnumNick) { EnumValue, #EnumValue, EnumNick }
+#define G_DEFINE_ENUM_VALUE(EnumValue, EnumNick) \
+ { EnumValue, #EnumValue, EnumNick } \
+ GLIB_AVAILABLE_MACRO_IN_2_74
/**
* G_DEFINE_ENUM_TYPE:
@@ -326,7 +328,8 @@ type_name ## _get_type (void) { \
g_once_init_leave (&g_define_type__static, g_define_type); \
} \
return g_define_type__static; \
-}
+} \
+ GLIB_AVAILABLE_MACRO_IN_2_74
/**
* G_DEFINE_FLAGS_TYPE:
@@ -368,7 +371,8 @@ type_name ## _get_type (void) { \
g_once_init_leave (&g_define_type__static, g_define_type); \
} \
return g_define_type__static; \
-}
+} \
+ GLIB_AVAILABLE_MACRO_IN_2_74
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]