gcredentials: add internal macros to simplify all the #ifdefs
authorDan Winship <danw@gnome.org>
Wed, 18 Sep 2013 17:40:09 +0000 (13:40 -0400)
committerDan Winship <danw@gnome.org>
Fri, 4 Oct 2013 13:51:31 +0000 (09:51 -0400)
commitcedd697bf80faf18d0d42b3e4d8bef5a5cf8ef9f
tree9b0d2840eb7f6a570483ded07bb9b97f4010c64a
parent32d2539295308711ec97b37feb104e1be04ba454
gcredentials: add internal macros to simplify all the #ifdefs

Rather than having lots of obscure platform-based #ifdefs all over
gio, define some macros in gcredentialsprivate.h, and use those to
simplify the rest of the code.

https://bugzilla.gnome.org/show_bug.cgi?id=701482
gio/Makefile.am
gio/gcredentials.c
gio/gcredentialsprivate.h [new file with mode: 0644]
gio/gsocket.c
gio/gunixcredentialsmessage.c
gio/tests/credentials.c
gio/tests/gdbus-peer.c