filesink: Fix fsync/_commit usage
authorEdward Hervey <edward@centricular.com>
Tue, 9 Jun 2015 09:01:53 +0000 (11:01 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 9 Jun 2015 09:03:28 +0000 (11:03 +0200)
_MSC_VER will only be defined when building *on* windows and not just
*for* windows. Instead, use the G_OS_WIN32 define

plugins/elements/gstfilesink.c

index bbea358..0803fc1 100644 (file)
 #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