{"capsfilter", GST_RANK_NONE, gst_capsfilter_get_type},
{"fakesrc", GST_RANK_NONE, gst_fake_src_get_type},
{"fakesink", GST_RANK_NONE, gst_fake_sink_get_type},
-#ifndef WIN32
+#ifndef HAVE_WIN32
{"fdsrc", GST_RANK_NONE, gst_fdsrc_get_type},
-#endif //WIN32
+#endif
{"filesrc", GST_RANK_NONE, gst_file_src_get_type},
{"identity", GST_RANK_NONE, gst_identity_get_type},
{"filesink", GST_RANK_NONE, gst_file_sink_get_type},
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+
#ifdef HAVE_UNISTD_H
-#include <unistd.h>
+# include <unistd.h>
#endif
+
#ifdef HAVE_MMAP
-#include <sys/mman.h>
+# include <sys/mman.h>
#endif
+
+#ifdef HAVE_WIN32
+# include <io.h> /* lseek, open, close, read */
+#endif
+
#include <errno.h>
#include <string.h>
goto could_not_read;
/* regular files should have given us what we expected */
- if ((gint) ret < length && src->is_regular)
+ if ((guint) ret < length && src->is_regular)
goto unexpected_eos;
/* other files should eos if they read 0 */
{"capsfilter", GST_RANK_NONE, gst_capsfilter_get_type},
{"fakesrc", GST_RANK_NONE, gst_fake_src_get_type},
{"fakesink", GST_RANK_NONE, gst_fake_sink_get_type},
-#ifndef WIN32
+#ifndef HAVE_WIN32
{"fdsrc", GST_RANK_NONE, gst_fdsrc_get_type},
-#endif //WIN32
+#endif
{"filesrc", GST_RANK_NONE, gst_file_src_get_type},
{"identity", GST_RANK_NONE, gst_identity_get_type},
{"filesink", GST_RANK_NONE, gst_file_sink_get_type},
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+
#ifdef HAVE_UNISTD_H
-#include <unistd.h>
+# include <unistd.h>
#endif
+
#ifdef HAVE_MMAP
-#include <sys/mman.h>
+# include <sys/mman.h>
#endif
+
+#ifdef HAVE_WIN32
+# include <io.h> /* lseek, open, close, read */
+#endif
+
#include <errno.h>
#include <string.h>
goto could_not_read;
/* regular files should have given us what we expected */
- if ((gint) ret < length && src->is_regular)
+ if ((guint) ret < length && src->is_regular)
goto unexpected_eos;
/* other files should eos if they read 0 */