]> granicus.if.org Git - imagemagick/commitdiff
Use open_utf8 from utility-private.h.
authorDirk Lemstra <dirk@git.imagemagick.org>
Mon, 17 Jul 2017 21:18:44 +0000 (23:18 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Mon, 17 Jul 2017 21:18:44 +0000 (23:18 +0200)
coders/mpc.c

index b8c02dcc6c0f37feb89166a111b7756d981728e5..296f363fa5af9418e0e9e478fb7ff4d01630adcd 100644 (file)
@@ -72,6 +72,7 @@
 #include "MagickCore/string_.h"
 #include "MagickCore/string-private.h"
 #include "MagickCore/utility.h"
+#include "MagickCore/utility-private.h"
 #include "MagickCore/version-private.h"
 \f
 /*
@@ -1104,26 +1105,6 @@ ModuleExport void UnregisterMPCImage(void)
 %
 */
 
-static inline int open_utf8(const char *path,int flags,mode_t mode)
-{
-#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__)
-  return(open(path,flags,mode));
-#else
-   int
-     status;
-
-   wchar_t
-     *path_wide;
-
-   path_wide=create_wchar_path(path);
-   if (path_wide == (wchar_t *) NULL)
-     return(-1);
-   status=_wopen(path_wide,flags,mode);
-   path_wide=(wchar_t *) RelinquishMagickMemory(path_wide);
-   return(status);
-#endif
-}
-
 static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image,
   ExceptionInfo *exception)
 {