#endif
#include "MagickCore/memory_.h"
+#include "MagickCore/nt-base.h"
#include "MagickCore/nt-base-private.h"
extern MagickPrivate char
#endif
}
+#if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(__CYGWIN__) && !defined(__MINGW32__)
+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__)
static inline FILE *popen_utf8(const char *command,const char *type)
{
#if !defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__)
- return(fopen(command,type));
+ return(popen(command,type));
#else
FILE
*file;