gatomic: statically assert that our assumptions hold
commit7269d75321b9d2a967a59fb35f243397f577eb41
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Sun, 20 Jul 2014 11:39:24 +0000 (20 12:39 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 23 Jul 2014 08:17:48 +0000 (23 09:17 +0100)
treeb5181043c2afb816d45e7cf36c440b57375170dc
parent19e0cdd7a08af4e9ea8b15f6f82199f93bb4355d
gatomic: statically assert that our assumptions hold

This code assumes that int is exactly 4 bytes, and that pointers
are either 4 or 8 bytes, on platforms with __ATOMIC_SEQ_CST.
In practice this is going to be true.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=730932
glib/gatomic.h