4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef RPC_NO_WINDOWS_H
36 #if defined(__powerpc__) || defined(_MAC) /* ? */
38 /* Also define __RPC_WIN32__ to ensure compatibility */
39 # define __RPC_WIN32__
41 # define __RPC_WIN64__
43 # define __RPC_WIN32__
49 #define __RPC_API __stdcall
50 #define __RPC_USER __stdcall
51 #define __RPC_STUB __stdcall
52 #define RPC_ENTRY __stdcall
54 typedef LONG RPC_STATUS
;
56 typedef void* I_RPC_HANDLE
;
59 /* #include <rpcnsi.h> */
63 #ifndef RPC_NO_WINDOWS_H
67 #ifdef USE_COMPILER_EXCEPTIONS
69 #define RpcTryExcept __try {
70 #define RpcExcept(expr) } __except (expr) {
71 #define RpcEndExcept }
72 #define RpcTryFinally __try {
73 #define RpcFinally } __finally {
74 #define RpcEndFinally }
75 #define RpcExceptionCode() GetExceptionCode()
76 #define RpcAbnormalTermination() AbnormalTermination()
78 #else /* USE_COMPILER_EXCEPTIONS */
80 /* ignore exception handling for now */
81 #define RpcTryExcept if (1) {
82 #define RpcExcept(expr) } else {
83 #define RpcEndExcept }
87 #define RpcExceptionCode() 0
88 /* #define RpcAbnormalTermination() abort() */
90 #endif /* USE_COMPILER_EXCEPTIONS */
92 #endif /*__WINE_RPC_H */