Mercurial > mplayer.hg
comparison stream/stream_file.c @ 27727:48c1ae64255b
Replace preprocessor check for WIN32 with checks for __MINGW32__ and __CYGWIN__.
This avoids a pointless indirection that only obscures what is really done.
author | diego |
---|---|
date | Mon, 13 Oct 2008 16:23:55 +0000 |
parents | 9eb848b34476 |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
27726:5e3c7164f943 | 27727:48c1ae64255b |
---|---|
111 mp_msg(MSGT_OPEN,MSGL_ERR, "[file] No filename\n"); | 111 mp_msg(MSGT_OPEN,MSGL_ERR, "[file] No filename\n"); |
112 m_struct_free(&stream_opts,opts); | 112 m_struct_free(&stream_opts,opts); |
113 return STREAM_ERROR; | 113 return STREAM_ERROR; |
114 } | 114 } |
115 | 115 |
116 #if defined(WIN32) || defined(__OS2__) | 116 #if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__OS2__) |
117 // extract '/' from '/x:/path' | 117 // extract '/' from '/x:/path' |
118 if( filename[ 0 ] == '/' && filename[ 1 ] && filename[ 2 ] == ':' ) | 118 if( filename[ 0 ] == '/' && filename[ 1 ] && filename[ 2 ] == ':' ) |
119 filename++; | 119 filename++; |
120 #endif | 120 #endif |
121 | 121 |