Skip to content

Commit 0ee5a7a

Browse files
committed
PlugIn: do not define core Windows types on Windows
Do not attempt to define the core COM types on Windows. These conflict with the system provided definitions which are included via ForSwiftFoundationOnly.h.
1 parent fee0c9e commit 0ee5a7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CoreFoundation/PlugIn.subproj/CFPlugInCOM.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ CF_EXTERN_C_BEGIN
2020
/* The _reserved field is part of the Microsoft COM binary standard on Macintosh. */
2121
/* You can declare new C struct interfaces by defining a new struct that includes "IUNKNOWN_C_GUTS;" before the first field of the struct. */
2222

23+
#if !TARGET_OS_WIN32
2324
typedef SInt32 HRESULT;
2425
typedef UInt32 ULONG;
2526
typedef void *LPVOID;
2627
typedef CFUUIDBytes REFIID;
28+
#endif
2729

2830
#define SUCCEEDED(Status) ((HRESULT)(Status) >= 0)
2931
#define FAILED(Status) ((HRESULT)(Status)<0)

0 commit comments

Comments
 (0)