diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-06-21 16:19:21 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-08-11 11:51:43 +0100 |
commit | 213acdb71c9ba679b75bff95de25d126bb659465 (patch) | |
tree | 3872d7ac40f2778078853e028949fc9dfcc788ee /dbus/dbus-string-private.h | |
parent | 70fb675a108dbf660d384150429c9af085b0c48e (diff) | |
download | dbus-213acdb71c9ba679b75bff95de25d126bb659465.tar.gz |
Add _DBUS_STATIC_ASSERT (based on GLib's G_STATIC_ASSERT) and use it
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39636
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Diffstat (limited to 'dbus/dbus-string-private.h')
-rw-r--r-- | dbus/dbus-string-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-string-private.h b/dbus/dbus-string-private.h index 365d89a3..b17c2b9f 100644 --- a/dbus/dbus-string-private.h +++ b/dbus/dbus-string-private.h @@ -24,6 +24,7 @@ #ifndef DBUS_STRING_PRIVATE_H #define DBUS_STRING_PRIVATE_H +#include <dbus/dbus-internals.h> #include <dbus/dbus-memory.h> #include <dbus/dbus-types.h> @@ -51,6 +52,7 @@ typedef struct unsigned int align_offset : 3; /**< str - align_offset is the actual malloc block */ } DBusRealString; +_DBUS_STATIC_ASSERT (sizeof (DBusRealString) == sizeof (DBusString)); /** * @defgroup DBusStringInternals DBusString implementation details |