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
@ -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…
x
Reference in New Issue
Block a user