mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
include: Prefix public header file names with vkd3d.
Prevents possible clashes when using vkd3d with external Win32 headers. Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
f8c20beede
commit
abff3ca469
55
include/vkd3d_unknown.idl
Normal file
55
include/vkd3d_unknown.idl
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2016 Józef Kucia for CodeWeavers
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
cpp_quote("#ifndef __VKD3D_UNKNOWN_H")
|
||||
cpp_quote("#define __VKD3D_UNKNOWN_H")
|
||||
|
||||
/* For IDL only. */
|
||||
cpp_quote("#if 0")
|
||||
typedef IID *REFIID;
|
||||
typedef IID *REFGUID;
|
||||
cpp_quote("#endif")
|
||||
|
||||
cpp_quote("#if !defined(_WIN32)")
|
||||
typedef void *HWND;
|
||||
typedef void *HMODULE;
|
||||
|
||||
typedef struct LUID
|
||||
{
|
||||
DWORD LowPart;
|
||||
LONG HighPart;
|
||||
} LUID;
|
||||
|
||||
typedef struct _RECT
|
||||
{
|
||||
LONG left;
|
||||
LONG top;
|
||||
LONG right;
|
||||
LONG bottom;
|
||||
} RECT;
|
||||
cpp_quote("#endif")
|
||||
|
||||
[uuid(00000000-0000-0000-C000-000000000046), object, local, pointer_default(unique)]
|
||||
interface IUnknown
|
||||
{
|
||||
HRESULT QueryInterface(REFIID riid, void **object);
|
||||
ULONG AddRef();
|
||||
ULONG Release();
|
||||
}
|
||||
|
||||
cpp_quote("#endif /* __VKD3D_UNKNOWN_H */")
|
Reference in New Issue
Block a user