]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavformat/utils.c
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
[frescor/ffmpeg.git] / libavformat / utils.c
index 0db740333a3eba712b476a9b5eb86eab3bf37787..f811b2c6280ab4bcbd5d4e6719a5ec8c5b128cb5 100644 (file)
  */
 #include "avformat.h"
 #include <ctype.h>
-#ifndef CONFIG_WIN32
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/time.h>
-#else
+#ifdef CONFIG_WIN32
 #define strcasecmp _stricmp
 #include <sys/types.h>
 #include <sys/timeb.h>
+#elif defined(CONFIG_OS2)
+#include <string.h>
+#define strcasecmp stricmp
+#include <sys/time.h>
+#else
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/time.h>
 #endif
 #include <time.h>
 
@@ -362,7 +366,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
     }
         
     /* XXX: suppress this hack for redirectors */
-#ifndef __MINGW32__
+#ifdef CONFIG_NETWORK
     if (fmt == &redir_demux) {
         err = redir_open(ic_ptr, &ic->pb);
         url_fclose(&ic->pb);