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:
Edward Hervey 2015-06-09 11:01:53 +02:00 committed by Edward Hervey
parent 1ae38f7ba7
commit 084f6859ea

View file

@ -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