Add #define GLIB_USING_SYSTEM_PRINTF to glibconfig.h, which specifies if
authorCody Russell <bratsche@gnome.org>
Thu, 26 Jun 2008 15:03:05 +0000 (15:03 +0000)
committerCody Russell <bratsche@src.gnome.org>
Thu, 26 Jun 2008 15:03:05 +0000 (15:03 +0000)
2008-06-26  Cody Russell  <bratsche@gnome.org>

        * configure.in: Add #define GLIB_USING_SYSTEM_PRINTF
        to glibconfig.h, which specifies if GLib is using
        the system printf functions for g_print*().
        (#539999, by Tim-Philipp Müller)

svn path=/trunk/; revision=7099

ChangeLog
configure.in

index 376327d..d34561d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-06-26  Cody Russell  <bratsche@gnome.org>
+
+       * configure.in: Add #define GLIB_USING_SYSTEM_PRINTF
+       to glibconfig.h, which specifies if GLib is using
+       the system printf functions for g_print*().
+       (#539999, by Tim-Philipp Müller)
+
 2008-06-24  Paolo Borelli  <pborelli@katamail.com>
 
        Bug 539770 - migrate gstrfunc unit tests to gtest
index 70ac4db..5fdac89 100644 (file)
@@ -2617,6 +2617,14 @@ _______EOF
        if test x$glib_sys_poll_h = xyes; then
          echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
        fi
+       if test x$enable_included_printf != xyes; then
+          echo "
+/* Specifies that GLib's g_print*() functions wrap the
+ * system printf functions.  This is useful to know, for example,
+ * when using glibc's register_printf_function().
+ */" >> $outfile
+         echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile
+       fi
 
        cat >> $outfile <<_______EOF