diff lib/misc.c @ 328:51bb530a100c

2003-12-7 Brian Masney <masneyb@gftp.org> * configure.in acinclude.m4 lib/misc.c - added AC_INTL_PRINTF macro. If the printf family of functions supports %'ld, then HAVE_INTL_PRINTF will be defined. The appropriate version of insert_commas() can be used.
author masneyb
date Sun, 07 Dec 2003 17:25:13 +0000
parents 0fcc6468a0af
children 532eb171d5c2
line wrap: on
line diff
--- a/lib/misc.c	Fri Dec 05 00:22:06 2003 +0000
+++ b/lib/misc.c	Sun Dec 07 17:25:13 2003 +0000
@@ -22,7 +22,7 @@
 #include "gftp.h"
 #include "options.h"
 
-#ifdef _GNU_SOURCE
+#ifdef HAVE_INTL_PRINTF
 
 char *
 insert_commas (off_t number, char *dest_str, size_t dest_len)
@@ -359,6 +359,10 @@
   printf ("#define HAVE_GETTEXT\n");
 #endif
 
+#ifdef HAVE_INTL_PRINTF
+  printf ("#define HAVE_INTL_PRINTF\n");
+#endif
+
   printf ("glib version: %d.%d.%d\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION,
           GLIB_MICRO_VERSION);