From 2dae3a600ba5adfa47645438843e9d61b171d019 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sun, 31 Dec 2006 12:16:04 +0000 Subject: * dbus/dbus-sysdeps-unix.c: moved _dbus_atomic_inc/dec() from dbus/dbus-sysdeps.c, windows version of _dbus_atomic_inc/dec() is in dbus-sysdeps-win.c (not in this patch). * dbus/dbus-sysdeps.h: DBusAtomic::value is long on windows to fit with InterlockedInc/Decrement. - Patches from Christian Ehrlicher --- dbus/dbus-sysdeps.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dbus/dbus-sysdeps.h') diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h index 2218cfc1..9bc91186 100644 --- a/dbus/dbus-sysdeps.h +++ b/dbus/dbus-sysdeps.h @@ -229,7 +229,11 @@ typedef struct DBusAtomic DBusAtomic; */ struct DBusAtomic { +#ifdef DBUS_WIN + volatile long value; /**< Value of the atomic integer. */ +#else volatile dbus_int32_t value; /**< Value of the atomic integer. */ +#endif }; dbus_int32_t _dbus_atomic_inc (DBusAtomic *atomic); -- cgit