[glib] meson: define G_PID_FORMAT



commit ab6e425574ce2f6aeaeddeee82cbbe7d1bbdd8d4
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Mon Jul 17 18:33:42 2017 +0200

    meson: define G_PID_FORMAT
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784995

 glib/glibconfig.h.in |    1 +
 meson.build          |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glib/glibconfig.h.in b/glib/glibconfig.h.in
index 87a4a12..e9fc6c6 100644
--- a/glib/glibconfig.h.in
+++ b/glib/glibconfig.h.in
@@ -191,6 +191,7 @@ typedef unsigned @glib_intptr_type_define@ guintptr;
 #define G_MODULE_SUFFIX "@g_module_suffix@"
 
 typedef @g_pid_type@ GPid;
+#define G_PID_FORMAT @g_pid_format@
 
 #define GLIB_SYSDEF_AF_UNIX @g_af_unix@
 #define GLIB_SYSDEF_AF_INET @g_af_inet@
diff --git a/meson.build b/meson.build
index 99afed0..1f29431 100644
--- a/meson.build
+++ b/meson.build
@@ -925,7 +925,7 @@ glib_conf.set('ALIGNOF_GUINT64', guint64_align)
 
 if host_system == 'windows'
   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'
     glibconfig_conf.set('g_pollfd_format', '"%#I64x"')
   else
@@ -933,7 +933,7 @@ if host_system == 'windows'
   endif
 else
   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"')
 endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]