Commit 0b609fa4 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: do not spread gcc problems to other compilers

parent 1996bfb7
......@@ -585,12 +585,12 @@ static int Open( vlc_object_t * p_this )
if (!s_filename.compare(p_demux->psz_path))
continue;
#if __GNUC__ >= 3
if (!s_filename.compare(s_filename.length() - 3, 3, "mkv") ||
!s_filename.compare(s_filename.length() - 3, 3, "mka"))
#else
#if defined(__GNUC__) && (__GNUC__ < 3)
if (!s_filename.compare("mkv", s_filename.length() - 3, 3) ||
!s_filename.compare("mka", s_filename.length() - 3, 3))
#else
if (!s_filename.compare(s_filename.length() - 3, 3, "mkv") ||
!s_filename.compare(s_filename.length() - 3, 3, "mka"))
#endif
{
// test wether this file belongs to the our family
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment