MINGW32 port

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9763 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2003-03-30 20:11:25 +00:00
parent 2f0126f6c0
commit 316635bb35
2 changed files with 4 additions and 4 deletions

View File

@ -610,10 +610,10 @@ if(strncmp("dvbin://",filename,8) == 0)
mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN);
f=0; // 0=stdin
} else {
#ifndef __CYGWIN__
f=open(filename,O_RDONLY);
#else
#if defined(__CYGWIN__) || defined(__MINGW32__)
f=open(filename,O_RDONLY|O_BINARY);
#else
f=open(filename,O_RDONLY);
#endif
if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);return NULL; }
}

View File

@ -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