Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
26b56599
Commit
26b56599
authored
Nov 07, 1999
by
Peter Hunnisett
Committed by
Alexandre Julliard
Nov 07, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added missing __attribute__ ((com_interface)) for IUnknown with.
ICOM_USE_COM_INTERFACE_ATTRIBUTE - Small addition to comments surrounding ICOM_USE_COM_INTERFACE_ATTRIBUTE "option".
parent
8ced8815
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
obj_base.h
include/wine/obj_base.h
+14
-3
No files found.
include/wine/obj_base.h
View file @
26b56599
...
...
@@ -14,10 +14,16 @@
* with the binary emulator.
*
* If the compiler supports the com_interface attribute, leave this off, and
* define the ICOM_USE_COM_INTERFACE_ATTRIBUTE macro below.
* define the ICOM_USE_COM_INTERFACE_ATTRIBUTE macro below. This may also
* require the addition of the -vtable-thunks option for g++.
*
* If you aren't interested in WineLib C++ compatability at all, leave both
* options off.
*
* The preferable method for using ICOM_USE_COM_INTERFACE_ATTRIBUTE macro
* would be to define it only for your WineLib application. This allows you
* to have both binary and WineLib compatibility for C and C++ at the same
* time :)
*/
/* #define ICOM_MSVTABLE_COMPAT 1 */
/* #define ICOM_USE_COM_INTERFACE_ATTRIBUTE 1 */
...
...
@@ -698,11 +704,11 @@ typedef struct IUnknown IUnknown, *LPUNKNOWN;
typedef
struct
ICOM_VTABLE
(
IUnknown
)
ICOM_VTABLE
(
IUnknown
);
struct
IUnknown
{
ICOM_VFIELD
(
IUnknown
);
#if defined(ICOM_USE_COM_INTERFACE_ATTRIBUTE)
&& !defined(ICOM_CINTERFACE)
#if defined(ICOM_USE_COM_INTERFACE_ATTRIBUTE)
}
__attribute__
((
com_interface
));
#else
};
#endif
/* ICOM_US_COM_INTERFACE_ATTRIBUTE
, !ICOM_CINTERFACE
*/
#endif
/* ICOM_US_COM_INTERFACE_ATTRIBUTE */
struct
ICOM_VTABLE
(
IUnknown
)
{
#ifdef ICOM_MSVTABLE_COMPAT
...
...
@@ -718,7 +724,12 @@ struct IUnknown {
ICOM_METHOD2
(
HRESULT
,
QueryInterface
,
REFIID
,
riid
,
LPVOID
*
,
ppvObj
)
ICOM_METHOD
(
ULONG
,
AddRef
)
ICOM_METHOD
(
ULONG
,
Release
)
#if defined(ICOM_USE_COM_INTERFACE_ATTRIBUTE)
}
__attribute__
((
com_interface
));
#else
};
#endif
/* ICOM_US_COM_INTERFACE_ATTRIBUTE */
#undef ICOM_INTERFACE
/*** IUnknown methods ***/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment