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
|
|
@ -54,8 +54,9 @@ SndFileDecoder::~SndFileDecoder()
|
|||
|
||||
bool SndFileDecoder::open(FileReader *reader)
|
||||
{
|
||||
__try
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
__try {
|
||||
#endif
|
||||
SF_VIRTUAL_IO sfio = { file_get_filelen, file_seek, file_read, file_write, file_tell };
|
||||
|
||||
Reader = reader;
|
||||
|
|
@ -68,11 +69,11 @@ bool SndFileDecoder::open(FileReader *reader)
|
|||
sf_close(SndFile);
|
||||
SndFile = 0;
|
||||
}
|
||||
}
|
||||
__except (CheckException(GetExceptionCode()))
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
} __except (CheckException(GetExceptionCode())) {
|
||||
// this means that the delay loaded decoder DLL was not found.
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue