changeset 9762:4e2d477981e2

MINGW32 port
author faust3
date Sun, 30 Mar 2003 20:11:25 +0000
parents 878025a8da6c
children 7e5d9bf1e56f
files libmpdemux/open.c mangle.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/open.c	Sun Mar 30 19:16:35 2003 +0000
+++ b/libmpdemux/open.c	Sun Mar 30 20:11:25 2003 +0000
@@ -610,10 +610,10 @@
 	mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN);
 	f=0; // 0=stdin
     } else {
-#ifndef __CYGWIN__
+#if defined(__CYGWIN__) || defined(__MINGW32__)
+       f=open(filename,O_RDONLY|O_BINARY);
+#else
        f=open(filename,O_RDONLY);
-#else
-       f=open(filename,O_RDONLY|O_BINARY);
 #endif
        if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);return NULL; }
     }
--- a/mangle.h	Sun Mar 30 19:16:35 2003 +0000
+++ b/mangle.h	Sun Mar 30 20:11:25 2003 +0000
@@ -8,7 +8,7 @@
 #define __MANGLE_H
 
 /* Feel free to add more to the list, eg. a.out IMO */
-#if defined(__CYGWIN__) || defined(__OS2__) || \
+#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OS2__) || \
    (defined(__OpenBSD__) && !defined(__ELF__))
 #define MANGLE(a) "_" #a
 #else