VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/rpc.h@ 104831

最後變更 在這個檔案從104831是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.6 KB
 
1/*
2 * RPC interface
3 *
4 * Copyright (C) the Wine project
5 *
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.
10 *
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.
15 *
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
19 */
20
21/*
22 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef RPC_NO_WINDOWS_H
31# include <windows.h>
32#endif
33
34#ifndef __WINE_RPC_H
35#define __WINE_RPC_H
36
37#if defined(__powerpc__) || defined(_MAC) /* ? */
38# define __RPC_MAC__
39 /* Also define __RPC_WIN32__ to ensure compatibility */
40# define __RPC_WIN32__
41#elif defined(_WIN64)
42# define __RPC_WIN64__
43#else
44# define __RPC_WIN32__
45#endif
46
47#include <basetsd.h>
48
49#define __RPC_FAR
50#define __RPC_API __stdcall
51#define __RPC_USER __stdcall
52#define __RPC_STUB __stdcall
53#define RPC_ENTRY __stdcall
54#define RPCRTAPI
55typedef LONG RPC_STATUS;
56
57typedef void* I_RPC_HANDLE;
58
59#include <rpcdce.h>
60/* #include <rpcnsi.h> */
61#include <rpcnterr.h>
62#include <excpt.h>
63#include <winerror.h>
64#ifndef RPC_NO_WINDOWS_H
65#include <rpcasync.h>
66#endif
67
68#ifdef USE_COMPILER_EXCEPTIONS
69
70#define RpcTryExcept __try {
71#define RpcExcept(expr) } __except (expr) {
72#define RpcEndExcept }
73#define RpcTryFinally __try {
74#define RpcFinally } __finally {
75#define RpcEndFinally }
76#define RpcExceptionCode() GetExceptionCode()
77#define RpcAbnormalTermination() AbnormalTermination()
78
79#else /* USE_COMPILER_EXCEPTIONS */
80
81/* ignore exception handling for now */
82#define RpcTryExcept if (1) {
83#define RpcExcept(expr) } else {
84#define RpcEndExcept }
85#define RpcTryFinally
86#define RpcFinally
87#define RpcEndFinally
88#define RpcExceptionCode() 0
89/* #define RpcAbnormalTermination() abort() */
90
91#endif /* USE_COMPILER_EXCEPTIONS */
92
93#endif /*__WINE_RPC_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette