From: Cristy Date: Sun, 24 Mar 2019 17:25:17 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1526 X-Git-Tag: 7.0.8-35~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a0a88e411bb88c2fb1618f40e529ddc8e497959;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1526 --- diff --git a/MagickCore/utility-private.h b/MagickCore/utility-private.h index c5b54fee0..412fbf19b 100644 --- a/MagickCore/utility-private.h +++ b/MagickCore/utility-private.h @@ -127,7 +127,7 @@ static inline int access_utf8(const char *path,int mode) static inline FILE *fopen_utf8(const char *path,const char *mode) { -#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) +#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) return(fopen(path,mode)); #else FILE @@ -155,7 +155,7 @@ static inline FILE *fopen_utf8(const char *path,const char *mode) static inline void getcwd_utf8(char *path,size_t extent) { -#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) +#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) char *directory; @@ -170,14 +170,14 @@ static inline void getcwd_utf8(char *path,size_t extent) #endif } -#if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(__CYGWIN__) && !defined(__MINGW32__) +#if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(__CYGWIN__) typedef int mode_t; #endif static inline int open_utf8(const char *path,int flags,mode_t mode) { -#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) +#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) return(open(path,flags,mode)); #else int @@ -197,7 +197,7 @@ static inline int open_utf8(const char *path,int flags,mode_t mode) static inline FILE *popen_utf8(const char *command,const char *type) { -#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) +#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) return(popen(command,type)); #else FILE @@ -225,7 +225,7 @@ static inline FILE *popen_utf8(const char *command,const char *type) static inline int remove_utf8(const char *path) { -#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) +#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) return(unlink(path)); #else int @@ -245,7 +245,7 @@ static inline int remove_utf8(const char *path) static inline int rename_utf8(const char *source,const char *destination) { -#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) +#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) return(rename(source,destination)); #else int @@ -273,7 +273,7 @@ static inline int rename_utf8(const char *source,const char *destination) static inline int stat_utf8(const char *path,struct stat *attributes) { -#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) +#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) return(stat(path,attributes)); #else int