]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 19 May 2011 21:21:41 +0000 (21:21 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 19 May 2011 21:21:41 +0000 (21:21 +0000)
config/config.h.in
configure
configure.ac
magick/locale.c
magick/magick-config.h
magick/nt-base.h

index 6c3cd5ccfcc77d6b90a7845d5b3a4cafba389beb..b6e153743e7d01c63b3c8bf315f46c3d45c82f44 100644 (file)
 /* Define to 1 if you have the `fork' function. */
 #undef HAVE_FORK
 
-/* Define to 1 if you have the `fprintf_l' function. */
-#undef HAVE_FPRINTF_L
-
 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
 #undef HAVE_FSEEKO
 
 /* Define to 1 if you have the <vfork.h> header file. */
 #undef HAVE_VFORK_H
 
+/* Define to 1 if you have the `vfprintf' function. */
+#undef HAVE_VFPRINTF
+
+/* Define to 1 if you have the `vfprintf_l' function. */
+#undef HAVE_VFPRINTF_L
+
 /* Define to 1 if you have the `vprintf' function. */
 #undef HAVE_VPRINTF
 
index d9cf6d976412ebcb8502814ce031783cf6a953e1..4b68e089077f8119d2c8e3fa8433559af7841782 100755 (executable)
--- a/configure
+++ b/configure
@@ -24005,7 +24005,7 @@ fi
 LIBS="$MATH_LIBS $LIBS"
 
 
-for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork fprintf_l ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
+for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
index 7aba68bb576a129f0e672961dbf8ac9344adfce8..b058e14851402eadd2bc96c6d733ad990999418f 100755 (executable)
@@ -1051,7 +1051,7 @@ AC_CHECK_LIB(m,sqrt,MATH_LIBS="-lm",,)
 LIBS="$MATH_LIBS $LIBS"
 AC_SUBST(MATH_LIBS)
 
-AC_CHECK_FUNCS([atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork fprintf_l ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat])
+AC_CHECK_FUNCS([atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat])
 
 #
 # Check for clock_gettime().
index cf800d643655d48dc0c337f90f3d64d2b4c5ad54..6913a9b1e84f87c5d3606ca55e3116ded3cf8e63 100644 (file)
@@ -227,16 +227,16 @@ MagickExport ssize_t FormatLocaleFileList(FILE *file,const char *format,
   int
     n;
 
-#if defined(MAGICKCORE_HAVE_FPRINTF_L)
+#if defined(MAGICKCORE_HAVE_VFPRINTF_L)
   {
     locale_t
       locale;
 
     locale=AcquireCLocale();
     if (locale == (locale_t) NULL)
-      n=fprintf(file,format,operands);
+      n=vfprintf(file,format,operands);
     else
-      n=fprintf_l(file,format,locale,operands);
+      n=vfprintf_l(file,format,locale,operands);
   }
 #else
 #if defined(MAGICKCORE_HAVE_USELOCALE)
@@ -247,11 +247,11 @@ MagickExport ssize_t FormatLocaleFileList(FILE *file,const char *format,
 
     locale=AcquireCLocale();
     if (locale == (locale_t) NULL)
-      n=fprintf(file,format,operands);
+      n=vfprintf(file,format,operands);
     else
       {
         previous_locale=uselocale(locale);
-        n=fprintf(file,format,operands);
+        n=vfprintf(file,format,operands);
         uselocale(previous_locale);
       }
   }
index db6c5c3d5370636848dbc7bbeaee22f346b104bc..b8e6cd8fbe267a728724cf6bac5b84bc001dcfb9 100644 (file)
 #define MAGICKCORE_HAVE_FORK 1
 #endif
 
-/* Define to 1 if you have the `fprintf_l' function. */
-/* #undef HAVE_FPRINTF_L */
-
 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
 #ifndef MAGICKCORE_HAVE_FSEEKO
 #define MAGICKCORE_HAVE_FSEEKO 1
 /* Define to 1 if you have the <vfork.h> header file. */
 /* #undef HAVE_VFORK_H */
 
+/* Define to 1 if you have the `vfprintf' function. */
+#ifndef MAGICKCORE_HAVE_VFPRINTF
+#define MAGICKCORE_HAVE_VFPRINTF 1
+#endif
+
+/* Define to 1 if you have the `vfprintf_l' function. */
+/* #undef HAVE_VFPRINTF_L */
+
 /* Define to 1 if you have the `vprintf' function. */
 #ifndef MAGICKCORE_HAVE_VPRINTF
 #define MAGICKCORE_HAVE_VPRINTF 1
index cd2d90286b5ae9efa58762537e755801b460c525..1511bdc4db840550f2221a10ccc44c6a5f5a6c9c 100644 (file)
@@ -245,6 +245,16 @@ extern "C" {
 #if !defined(tempnam)
 #  define tempnam  _tempnam_s
 #endif
+#if !defined(vfprintf)
+#if !defined(_MSC_VER) || (defined(_MSC_VER) && (_MSC_VER < 1500))
+#define vfprintf  _vfprintf_s
+#endif
+#endif
+#if !defined(vfprintf_l)
+#if !defined(_MSC_VER) || (defined(_MSC_VER) && (_MSC_VER < 1500))
+#define vfprintf_l  _vfprintf_s_l
+#endif
+#endif
 #if !defined(vsnprintf)
 #if !defined(_MSC_VER) || (defined(_MSC_VER) && (_MSC_VER < 1500))
 #define vsnprintf  _vsnprintf_s