mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 02:24:13 +00:00
filesink: Fix fsync/_commit usage
_MSC_VER will only be defined when building *on* windows and not just *for* windows. Instead, use the G_OS_WIN32 define
This commit is contained in:
parent
1ae38f7ba7
commit
084f6859ea
1 changed files with 2 additions and 2 deletions
|
@ -58,10 +58,10 @@
|
|||
#define off_t guint64
|
||||
#undef ftruncate
|
||||
#define ftruncate _chsize
|
||||
#ifdef _MSC_VER /* Check if we are using MSVC, fileno is deprecated in favour */
|
||||
#define fileno _fileno /* of _fileno */
|
||||
#undef fsync
|
||||
#define fsync _commit
|
||||
#ifdef _MSC_VER /* Check if we are using MSVC, fileno is deprecated in favour */
|
||||
#define fileno _fileno /* of _fileno */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue