summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/objidl.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include/objidl.h')
-rw-r--r--winsup/w32api/include/objidl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/w32api/include/objidl.h b/winsup/w32api/include/objidl.h
index 326915cb1..f33f8a319 100644
--- a/winsup/w32api/include/objidl.h
+++ b/winsup/w32api/include/objidl.h
@@ -1410,7 +1410,9 @@ HRESULT STDMETHODCALLTYPE ILockBytes_ReadAt_Proxy(ILockBytes*,ULARGE_INTEGER,voi
HRESULT STDMETHODCALLTYPE ILockBytes_ReadAt_Stub(ILockBytes*,ULARGE_INTEGER,BYTE*,ULONG,ULONG*);
HRESULT STDMETHODCALLTYPE ILockBytes_WriteAt_Proxy(ILockBytes*,ULARGE_INTEGER,const void*,ULONG,ULONG*);
HRESULT STDMETHODCALLTYPE ILockBytes_WriteAt_Stub(ILockBytes*,ULARGE_INTEGER,BYTE*,ULONG,ULONG*);
-#ifdef COBJMACROS
+
+#if (!defined (__cplusplus) || defined (CINTERFACE)) \
+ && defined (COBJMACROS)
#define IMarshal_QueryInterface(T,r,p) (T)->lpVtbl->QueryInterface(T,r,p)
#define IMarshal_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IMarshal_Release(This) (This)->lpVtbl->Release(This)