Commit 90c29ab3 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Make GUIDs non-const when compiling MIDL/widl generated proxies.

parent 39a696a1
......@@ -52,16 +52,22 @@ typedef GUID IID,*LPIID;
#endif /* ndef __IID_DEFINED__ */
typedef GUID FMTID,*LPFMTID;
#ifdef __midl_proxy
#define __MIDL_CONST
#else
#define __MIDL_CONST const
#endif
#if defined(__cplusplus) && !defined(CINTERFACE)
#define REFGUID const GUID &
#define REFCLSID const CLSID &
#define REFIID const IID &
#define REFFMTID const FMTID &
#else /* !defined(__cplusplus) && !defined(CINTERFACE) */
#define REFGUID const GUID* const
#define REFCLSID const CLSID* const
#define REFIID const IID* const
#define REFFMTID const FMTID* const
#define REFGUID const GUID* __MIDL_CONST
#define REFCLSID const CLSID* __MIDL_CONST
#define REFIID const IID* __MIDL_CONST
#define REFFMTID const FMTID* __MIDL_CONST
#endif /* !defined(__cplusplus) && !defined(CINTERFACE) */
#if defined(__cplusplus) && !defined(CINTERFACE)
......
......@@ -24,8 +24,12 @@
#ifndef __WINE_RPCPROXY_H
#define __WINE_RPCPROXY_H
#define __midl_proxy
#include <basetsd.h>
#ifndef GUID_DEFINED
#include <guiddef.h>
#endif
#include <rpc.h>
#include <rpcndr.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment