diff options
author | Edward Hervey <edward@centricular.com> | 2015-06-09 11:01:53 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2015-06-09 11:03:28 +0200 |
commit | 084f6859ea9b572505e7fd55a32b19812d3a0731 (patch) | |
tree | c7044db8f7ab568664d991b96b5692814ed22464 /plugins | |
parent | 1ae38f7ba738c2adaaebc66576143f96cdd5e962 (diff) |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/elements/gstfilesink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c index bbea358fc0..0803fc1496 100644 --- a/plugins/elements/gstfilesink.c +++ b/plugins/elements/gstfilesink.c @@ -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 |