%
*/
MagickExport MagickBooleanType GetPathAttributes(const char *path,
- struct stat *attributes)
+ void *attributes)
{
MagickBooleanType
status;
errno=EINVAL;
return(MagickFalse);
}
- (void) ResetMagickMemory(attributes,0,sizeof(*attributes));
- status=stat_utf8(path,attributes) == 0 ? MagickTrue : MagickFalse;
+ (void) ResetMagickMemory(attributes,0,sizeof(struct stat));
+ status=stat_utf8(path,(struct stat *) attributes) == 0 ? MagickTrue :
+ MagickFalse;
return(status);
}
\f
extern "C" {
#endif
-#if defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(MAGICKCORE_POSIX_SUPPORT)
-# include <sys/stat.h>
-#endif
-
typedef enum
{
UndefinedPath,
AcquireUniqueFilename(char *),
AcquireUniqueSymbolicLink(const char *,char *),
ExpandFilenames(int *,char ***),
- GetPathAttributes(const char *,struct stat *),
+ GetPathAttributes(const char *,void *),
IsPathAccessible(const char *);
extern MagickExport size_t