gmain: Add G_PID_FORMAT

This will be useful for printing out GPids in printf()-style functions.

https://bugzilla.gnome.org/show_bug.cgi?id=767765
This commit is contained in:
Philip Withnall
2016-06-16 18:28:14 -04:00
parent 8c6d08ab1b
commit 7ea4949cda
4 changed files with 17 additions and 0 deletions

View File

@@ -242,6 +242,7 @@ typedef unsigned __int64 guintptr;
* not a process identifier.
*/
typedef void * GPid;
#define G_PID_FORMAT "p"
#define GLIB_SYSDEF_AF_UNIX 1
#define GLIB_SYSDEF_AF_INET 2