diff utils.c @ 22:65433f1b2549 libavformat

os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
author michaelni
date Sat, 11 Jan 2003 20:34:38 +0000
parents 3d2d2f8725f9
children 86a085c19c7f
line wrap: on
line diff
--- a/utils.c	Sat Jan 11 05:33:35 2003 +0000
+++ b/utils.c	Sat Jan 11 20:34:38 2003 +0000
@@ -18,14 +18,18 @@
  */
 #include "avformat.h"
 #include <ctype.h>
-#ifndef CONFIG_WIN32
+#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>
-#else
-#define strcasecmp _stricmp
-#include <sys/types.h>
-#include <sys/timeb.h>
 #endif
 #include <time.h>
 
@@ -362,7 +366,7 @@
     }
         
     /* 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);