From 336a7dc1827c168559adcbea881c75c0fd53412d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 3 Jul 2008 12:58:57 +0200 Subject: [PATCH] rpc.h: Use the correct exception definitions when USE_COMPILER_EXCEPTIONS is set. --- include/rpc.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/rpc.h b/include/rpc.h index c157c6d766e..6c92ecce084 100644 --- a/include/rpc.h +++ b/include/rpc.h @@ -64,6 +64,19 @@ typedef void* I_RPC_HANDLE; #include #endif +#ifdef USE_COMPILER_EXCEPTIONS + +#define RpcTryExcept __try { +#define RpcExcept(expr) } __except (expr) { +#define RpcEndExcept } +#define RpcTryFinally __try { +#define RpcFinally } __finally { +#define RpcEndFinally } +#define RpcExceptionCode() GetExceptionCode() +#define RpcAbnormalTermination() AbnormalTermination() + +#else /* USE_COMPILER_EXCEPTIONS */ + /* ignore exception handling for now */ #define RpcTryExcept if (1) { #define RpcExcept(expr) } else { @@ -74,4 +87,6 @@ typedef void* I_RPC_HANDLE; #define RpcExceptionCode() 0 /* #define RpcAbnormalTermination() abort() */ +#endif /* USE_COMPILER_EXCEPTIONS */ + #endif /*__WINE_RPC_H */