mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 00:06:24 +01:00
meson: define G_PID_FORMAT
https://bugzilla.gnome.org/show_bug.cgi?id=784995
This commit is contained in:
parent
d88d1ba7e8
commit
ab6e425574
@ -191,6 +191,7 @@ typedef unsigned @glib_intptr_type_define@ guintptr;
|
|||||||
#define G_MODULE_SUFFIX "@g_module_suffix@"
|
#define G_MODULE_SUFFIX "@g_module_suffix@"
|
||||||
|
|
||||||
typedef @g_pid_type@ GPid;
|
typedef @g_pid_type@ GPid;
|
||||||
|
#define G_PID_FORMAT @g_pid_format@
|
||||||
|
|
||||||
#define GLIB_SYSDEF_AF_UNIX @g_af_unix@
|
#define GLIB_SYSDEF_AF_UNIX @g_af_unix@
|
||||||
#define GLIB_SYSDEF_AF_INET @g_af_inet@
|
#define GLIB_SYSDEF_AF_INET @g_af_inet@
|
||||||
|
@ -925,7 +925,7 @@ glib_conf.set('ALIGNOF_GUINT64', guint64_align)
|
|||||||
|
|
||||||
if host_system == 'windows'
|
if host_system == 'windows'
|
||||||
glibconfig_conf.set('g_pid_type', 'void*')
|
glibconfig_conf.set('g_pid_type', 'void*')
|
||||||
glibconfig_conf.set('G_PID_FORMAT', '"p"')
|
glibconfig_conf.set('g_pid_format', '"p"')
|
||||||
if host_machine.cpu_family() == 'x86_64'
|
if host_machine.cpu_family() == 'x86_64'
|
||||||
glibconfig_conf.set('g_pollfd_format', '"%#I64x"')
|
glibconfig_conf.set('g_pollfd_format', '"%#I64x"')
|
||||||
else
|
else
|
||||||
@ -933,7 +933,7 @@ if host_system == 'windows'
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
glibconfig_conf.set('g_pid_type', 'int')
|
glibconfig_conf.set('g_pid_type', 'int')
|
||||||
glibconfig_conf.set('G_PID_FORMAT', '"i"')
|
glibconfig_conf.set('g_pid_format', '"i"')
|
||||||
glibconfig_conf.set('g_pollfd_format', '"%d"')
|
glibconfig_conf.set('g_pollfd_format', '"%d"')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user