Don't try to define __try/__except on non-MSVC systems
They didn't do anything anyway, and can clash with other compilers since they may be used internally (macros and keywords starting with __ are for compiler use).
This commit is contained in:
parent
172290224b
commit
204d0c8572
4 changed files with 14 additions and 25 deletions
|
|
@ -56,17 +56,18 @@ bool MPG123Decoder::open(FileReader *reader)
|
|||
{
|
||||
if(!inited)
|
||||
{
|
||||
__try
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
__try {
|
||||
#endif
|
||||
if(mpg123_init() != MPG123_OK)
|
||||
return false;
|
||||
inited = true;
|
||||
}
|
||||
__except (CheckException(GetExceptionCode()))
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
} __except (CheckException(GetExceptionCode())) {
|
||||
// this means that the delay loaded decoder DLL was not found.
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reader = reader;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue