blob: 0f1c73fe094617875dda26472c1178f59491b166 [file] [log] [blame]
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include <sys/stat.h>
#include <stdlib.h>
char *__mingw_fix_stat_path(const char *_path);
#undef stat64
int __cdecl stat64(const char *_Filename, struct _stat64 *_Stat);
int __cdecl stat64(const char *_Filename, struct _stat64 *_Stat)
{
char *_path = __mingw_fix_stat_path(_Filename);
int ret = _stat64(_path, _Stat);
if (_path != _Filename)
free(_path);
return ret;
}
int (__cdecl *__MINGW_IMP_SYMBOL(stat64))(const char *, struct _stat64 *) = stat64;