[gupnp-av] Guard deprecated function
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-av] Guard deprecated function
- Date: Mon, 24 Sep 2012 10:35:37 +0000 (UTC)
commit 0c740957848a87c86f646e750e90dbc3266134a5
Author: Jens Georg <mail jensge org>
Date: Mon Sep 24 12:15:09 2012 +0200
Guard deprecated function
libgupnp-av/gvalue-util.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp-av/gvalue-util.c b/libgupnp-av/gvalue-util.c
index 4017648..1342ddc 100644
--- a/libgupnp-av/gvalue-util.c
+++ b/libgupnp-av/gvalue-util.c
@@ -42,7 +42,11 @@ gvalue_util_set_value_from_string (GValue *value,
break;
case G_TYPE_CHAR:
+#if GLIB_CHECK_VERSION(2,32,0)
+ g_value_set_schar (value, *str);
+#else
g_value_set_char (value, *str);
+#endif
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]