VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/basetyps.h

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

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.1 KB
 
1/*
2 * Copyright (C) 1998 Anders Norlander
3 * Copyright (C) 2005 Steven Edwards
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20/*
21 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
22 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
23 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
24 * a choice of LGPL license versions is made available with the language indicating
25 * that LGPLv2 or any later version may be used, or where a choice of which version
26 * of the LGPL is applied is otherwise unspecified.
27 */
28
29#ifndef _BASETYPS_H_
30#define _BASETYPS_H_
31
32#ifdef __cplusplus
33# define EXTERN_C extern "C"
34#else
35# define EXTERN_C extern
36#endif
37
38#define STDMETHODCALLTYPE __stdcall
39#define STDMETHODVCALLTYPE __cdecl
40#define STDAPICALLTYPE __stdcall
41#define STDAPIVCALLTYPE __cdecl
42#define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
43#define STDAPI_(t) EXTERN_C t STDAPICALLTYPE
44#define STDMETHODIMP HRESULT STDMETHODCALLTYPE
45#define STDMETHODIMP_(t) t STDMETHODCALLTYPE
46#define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
47#define STDAPIV_(t) EXTERN_C t STDAPIVCALLTYPE
48#define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
49#define STDMETHODIMPV_(t) t STDMETHODVCALLTYPE
50
51#if defined(__cplusplus) && !defined(CINTERFACE)
52# define interface struct
53# define STDMETHOD(m) virtual HRESULT STDMETHODCALLTYPE m
54# define STDMETHOD_(t,m) virtual t STDMETHODCALLTYPE m
55# define PURE =0
56# define THIS_
57# define THIS void
58# define DECLARE_INTERFACE(i) interface i
59# define DECLARE_INTERFACE_(i,b) interface i : public b
60#else
61# define STDMETHOD(m) HRESULT (STDMETHODCALLTYPE *m)
62# define STDMETHOD_(t,m) t (STDMETHODCALLTYPE *m)
63# define PURE
64# define THIS_ INTERFACE *,
65# define THIS INTERFACE *
66# ifdef CONST_VTABLE
67# define DECLARE_INTERFACE(i) \
68 typedef interface i { const struct i##Vtbl *lpVtbl; } i; \
69 typedef struct i##Vtbl i##Vtbl; \
70 struct i##Vtbl
71# else
72# define DECLARE_INTERFACE(i) \
73 typedef interface i { struct i##Vtbl *lpVtbl; } i; \
74 typedef struct i##Vtbl i##Vtbl; \
75 struct i##Vtbl
76# endif
77# define DECLARE_INTERFACE_(i,b) DECLARE_INTERFACE(i)
78#endif
79
80#include <guiddef.h>
81
82#ifndef _ERROR_STATUS_T_DEFINED
83typedef unsigned long error_status_t;
84#define _ERROR_STATUS_T_DEFINED
85#endif
86
87#ifndef _WCHAR_T_DEFINED
88typedef unsigned short wchar_t;
89#define _WCHAR_T_DEFINED
90#endif
91
92#endif /* _BASETYPS_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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