Bugfix: __try and __except are MSVC specific
This commit is contained in:
parent
bf5099f57b
commit
5ddfc628dc
|
@ -567,16 +567,19 @@ int main(int argc, const char** argv)
|
||||||
{
|
{
|
||||||
#if 1
|
#if 1
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#ifndef __GNUC__
|
||||||
#ifndef _DEBUG
|
#ifndef _DEBUG
|
||||||
__try
|
__try
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return main2(argc, argv);
|
return main2(argc, argv);
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#ifndef __GNUC__
|
||||||
#ifndef _DEBUG
|
#ifndef _DEBUG
|
||||||
}
|
}
|
||||||
__except (seh_filter(GetExceptionCode(), GetExceptionInformation()))
|
__except (seh_filter(GetExceptionCode(), GetExceptionInformation()))
|
||||||
|
@ -586,4 +589,5 @@ int main(int argc, const char** argv)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue