]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 21 May 2011 00:59:34 +0000 (00:59 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 21 May 2011 00:59:34 +0000 (00:59 +0000)
magick/locale.c

index 3283c2e25ff86344d37600c22f26dece259f8113..4b84b2e032ead1b33b7a801632b027b2b9681a74 100644 (file)
@@ -243,10 +243,10 @@ MagickExport ssize_t FormatLocaleFileList(FILE *file,
     if (locale == (locale_t) NULL)
       n=vfprintf(file,format,operands);
     else
-#if defined(__APPLE__)
-      n=vfprintf_l(file,locale,format,operands);
-#else
+#if defined(MAGICKCORE_WINDOWS_SUPPORT)
       n=vfprintf_l(file,format,locale,operands);
+#else
+      n=vfprintf_l(file,locale,format,operands);
 #endif
   }
 #else
@@ -334,10 +334,10 @@ MagickExport ssize_t FormatLocaleStringList(char *restrict string,
     if (locale == (locale_t) NULL)
       n=vsnprintf(string,length,format,operands);
     else
-#if defined(__APPLE__)
-      n=vsnprintf_l(string,length,locale,format,operands);
-#else
+#if defined(MAGICKCORE_WINDOWS_SUPPORT)
       n=vsnprintf_l(string,length,format,locale,operands);
+#else
+      n=vsnprintf_l(string,length,locale,format,operands);
 #endif
   }
 #elif defined(MAGICKCORE_HAVE_VSNPRINTF)