glib-init: make static assertions about platform assumptions
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 16 Nov 2012 12:53:39 +0000 (12:53 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Jan 2014 01:23:43 +0000 (20:23 -0500)
commit84f3147f434eab1124276ea2fdbee9a1e9a02c45
treec3da5c2796052aa7f818d3598ab6d680a4599f16
parenta4480d5f715a7631b1e98daa08a447f7c6b4bcd1
glib-init: make static assertions about platform assumptions

GLib has a pervasive assumption that function and data pointers are
basically interchangeable, which is true in all modern ABIs,
but not actually guaranteed by ISO C. If someone tries to use GLib on a
platform where function and data pointers are different sizes, fail early.

https://bugzilla.gnome.org/show_bug.cgi?id=688406
glib/glib-init.c