#if defined(MAGICKCORE_HAVE_NEWLOCALE)
if (c_locale != (locale_t) NULL)
freelocale(c_locale);
-#elif defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(__MINGW32__)
- if (c_locale != (locale_t) NULL)
- _free_locale(c_locale);
#endif
c_locale=(locale_t) NULL;
}
*/
MagickExport int LocaleLowercase(const int c)
{
- if (c_locale == (locale_t) NULL)
- return(tolower(c));
- return(tolower_l(c,c_locale));
+#if defined(MAGICKCORE_LOCALE_SUPPORT)
+ if (c_locale != (locale_t) NULL)
+ return(tolower_l(c,c_locale));
+#endif
+ return(tolower(c));
}
\f
/*
*/
MagickExport int LocaleUppercase(const int c)
{
- if (c_locale == (locale_t) NULL)
- return(toupper(c));
- return(toupper_l(c,c_locale));
+#if defined(MAGICKCORE_LOCALE_SUPPORT)
+ if (c_locale != (locale_t) NULL)
+ return(toupper_l(c,c_locale));
+#endif
+ return(toupper(c));
}
\f
/*
#if !defined(fileno)
# define fileno _fileno
#endif
+#if !defined(freelocale)
+# define freelocale _free_locale
+#endif
#if !defined(fseek) && !defined(__MINGW32__)
#if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
!(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
MAGICK_VERSION=7.0.8-26
-MAGICK_GIT_REVISION=15280:6e7c9e78a:20190128
+MAGICK_GIT_REVISION=15281:2f8969644:20190128
# Substitute library versioning