<div dir="ltr">Hi,<br><br>In top of "gstreamer-0.10.21/plugins/elements/gstfilesrc.c" I can see:<br><br>#ifdef G_OS_WIN32<br>...<br>#define stat __stat64<br>...<br>#endif<br><br>(G_OS_WIN32 is defined in glibconfig.h :<br>
<br>#define GLIB_MAJOR_VERSION 2<br>#define GLIB_MINOR_VERSION 18<br>#define GLIB_MICRO_VERSION 1<br><br>#define G_OS_WIN32<br>#define G_PLATFORM_WIN32<br>)<br><br>And in C:/MinGW/include/sys/stat.h i can see that __stat64 is only defined like this:<br>
<br>#if __MSVCRT_VERSION__ >= 0x0601<br>struct __stat64<br>{<br> _dev_t st_dev;<br> _ino_t st_ino;<br> _mode_t st_mode;<br> short st_nlink;<br> short st_uid;<br> short st_gid;<br> _dev_t st_rdev;<br>
__int64 st_size;<br> __time64_t st_atime;<br> __time64_t st_mtime;<br> __time64_t st_ctime;<br>};<br>#endif /* __MSVCRT_VERSION__ */<br><br>And in C:/MinGW/include/_mingw.h I can see :<br><br>#ifndef __MSVCRT_VERSION__<br>
/* High byte is the major version, low byte is the minor. */<br># define __MSVCRT_VERSION__ 0x0600<br>#endif<br><br>So __stat64 is never defined when using mingw32 so gstfilesrc.c won't compile.<br><br>I am using last release of mingw32 3.4.5:<br>
<a href="http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=11598&release_id=16693">http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=11598&release_id=16693</a><br>(see dev package)<br>
<br>So what should I do ? : define __MSVCRT_VERSION__ 0x0601 or remove the<br>#ifdef G_OS_WIN32<br>
...<br>
#define stat __stat64<br>
...<br>
#endif in top of gstfilesrc.c ?<br><br>Sincerely<br><br>Julien<br><br><br></div>