aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-04-22 10:46:49 -0700
committerPaul Eggert2012-04-22 10:46:49 -0700
commitde85e130f59b5164e2150abda92316f3a07d82c0 (patch)
treecdc3f38ad60518f5ea8f2243c7ff62e1e1fbc302 /src
parentdcbf5805ac7ade7fc83f3d209e2d56f029918402 (diff)
downloademacs-de85e130f59b5164e2150abda92316f3a07d82c0.tar.gz
emacs-de85e130f59b5164e2150abda92316f3a07d82c0.zip
* dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/dbusbind.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 205728f91da..0d557fcc1cf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-04-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 * dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.
4
12012-04-22 Michael Albinus <michael.albinus@gmx.de> 52012-04-22 Michael Albinus <michael.albinus@gmx.de>
2 6
3 Move functions from C to Lisp. Make non-blocking method calls 7 Move functions from C to Lisp. Make non-blocking method calls
diff --git a/src/dbusbind.c b/src/dbusbind.c
index 78e5c80baf3..0ea08d7bf0e 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -291,6 +291,8 @@ xd_symbol_to_dbus_type (Lisp_Object object)
291 } \ 291 } \
292 } while (0) 292 } while (0)
293 293
294#if (HAVE_DBUS_VALIDATE_BUS_NAME || HAVE_DBUS_VALIDATE_PATH \
295 || XD_DBUS_VALIDATE_OBJECT || HAVE_DBUS_VALIDATE_MEMBER)
294#define XD_DBUS_VALIDATE_OBJECT(object, func) \ 296#define XD_DBUS_VALIDATE_OBJECT(object, func) \
295 do { \ 297 do { \
296 if (!NILP (object)) \ 298 if (!NILP (object)) \
@@ -304,6 +306,7 @@ xd_symbol_to_dbus_type (Lisp_Object object)
304 dbus_error_free (&derror); \ 306 dbus_error_free (&derror); \
305 } \ 307 } \
306 } while (0) 308 } while (0)
309#endif
307 310
308#if HAVE_DBUS_VALIDATE_BUS_NAME 311#if HAVE_DBUS_VALIDATE_BUS_NAME
309#define XD_DBUS_VALIDATE_BUS_NAME(bus_name) \ 312#define XD_DBUS_VALIDATE_BUS_NAME(bus_name) \
@@ -864,7 +867,7 @@ static int
864xd_get_connection_references (DBusConnection *connection) 867xd_get_connection_references (DBusConnection *connection)
865{ 868{
866 ptrdiff_t *refcount; 869 ptrdiff_t *refcount;
867 870
868 /* We cannot access the DBusConnection structure, it is not public. 871 /* We cannot access the DBusConnection structure, it is not public.
869 But we know, that the reference counter is the first field in 872 But we know, that the reference counter is the first field in
870 that structure. */ 873 that structure. */