From 992f6269d1ddc0671a0ebe4fc45a3886660b548b Mon Sep 17 00:00:00 2001 From: John Klehm Date: Sat, 5 Apr 2008 12:02:02 -0500 Subject: exception.h: Add no op exception definitions for cross compiling --- include/wine/exception.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/wine/exception.h b/include/wine/exception.h index fc90364..bfe3330 100644 --- a/include/wine/exception.h +++ b/include/wine/exception.h @@ -75,6 +75,16 @@ #define __EXCEPT_PAGE_FAULT __except(GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION) #define __EXCEPT_ALL __except(EXCEPTION_EXECUTE_HANDLER) +/* elif to ifdef USE_COMPILER_EXCEPTIONS */ +#elif defined(__MINGW32__) && !defined(USE_COMPILER_EXCEPTIONS) + +#define __TRY +#define __EXCEPT(func) if (0) +#define __FINALLY(func) +#define __ENDTRY +#define __EXCEPT_PAGE_FAULT if (0) +#define __EXCEPT_ALL if (0) + #else /* USE_COMPILER_EXCEPTIONS */ #ifndef __GNUC__ -- 1.5.4.5