Hack to include glib/gdatasetprivate.h directly
authorEmmanuele Bassi <ebassi@linux.intel.com>
Sat, 4 Sep 2010 16:22:39 +0000 (17:22 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Sat, 4 Sep 2010 16:25:37 +0000 (17:25 +0100)
commit01a46e5c652ec8030226a9cf54025e175f56caac
tree536e910c8805ff4686e710036c8cde82a1dc8046
parent82db1446b39a4579b342b89fd0eba50c4f93441b
Hack to include glib/gdatasetprivate.h directly

The gdatasetprivate.h header includes gatomic.h directly. It all works
well in GLib, but inside GObject it will trigger the single inclusion
guard.

Since this is a private header, and it's kind of a special case, one way
to fix it is to declare GLIB_COMPILATION around it and fool the single
inclusion guard in gatomic.h into thinking we're compiling GLib and not
GObject.
gobject/gobject.c