[Libreoffice-commits] .: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Sep 18 23:34:45 PDT 2012


 sd/source/ui/remotecontrol/BluetoothServer.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 61b37c8bf4d1f536cf591b5356e7e10bfe72052c
Author: Andrzej J.R. Hunt <andrzej at ahunt.org>
Date:   Wed Sep 19 08:33:38 2012 +0200

    Add definition for G_VALUE_INIT as it doesn't exist for glib < 2.30.
    
    Change-Id: I48999baf1c6387c68d0a36f618e6e1d5a9e12b07

diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index c859f95..352275d 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -17,6 +17,10 @@
 #include <bluetooth/bluetooth.h>
 #include <bluetooth/rfcomm.h>
 #define DBUS_TYPE_G_STRING_ANY_HASHTABLE (dbus_g_type_get_map( "GHashTable", G_TYPE_STRING, G_TYPE_VALUE ))
+
+#ifndef G_VALUE_INIT
+  #define G_VALUE_INIT {0,{{0}}} // G_VALUE_INIT only present in glib >= 2.30
+#endif
 #endif
 
 #ifdef WIN32


More information about the Libreoffice-commits mailing list