mirror of
https://github.com/mpv-player/mpv
synced 2025-01-21 23:23:19 +00:00
MINGW32 port
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9763 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2f0126f6c0
commit
316635bb35
@ -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; }
|
||||
}
|
||||
|
2
mangle.h
2
mangle.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user