mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:45:39 +00:00
[PSDK]
- Add MIDL_user_allocate and MIDL_user_free definitions - #ifdef a GCC hack svn path=/branches/cmake-bringup/; revision=49281
This commit is contained in:
parent
ab5836ad90
commit
ec1e12e566
1 changed files with 11 additions and 0 deletions
|
@ -118,6 +118,9 @@ typedef unsigned char boolean;
|
||||||
#define midl_user_free MIDL_user_free
|
#define midl_user_free MIDL_user_free
|
||||||
#define midl_user_allocate MIDL_user_allocate
|
#define midl_user_allocate MIDL_user_allocate
|
||||||
|
|
||||||
|
void * __RPC_USER MIDL_user_allocate(size_t size);
|
||||||
|
void __RPC_USER MIDL_user_free( void * );
|
||||||
|
|
||||||
#define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
|
#define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
|
||||||
#define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), \
|
#define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), \
|
||||||
(unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
|
(unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
|
||||||
|
@ -649,6 +652,7 @@ RPCRTAPI void RPC_ENTRY
|
||||||
RPCRTAPI unsigned char* RPC_ENTRY
|
RPCRTAPI unsigned char* RPC_ENTRY
|
||||||
NdrUserMarshalSimpleTypeConvert( ULONG *pFlags, unsigned char *pBuffer, unsigned char FormatChar );
|
NdrUserMarshalSimpleTypeConvert( ULONG *pFlags, unsigned char *pBuffer, unsigned char FormatChar );
|
||||||
|
|
||||||
|
#ifdef __GCC__
|
||||||
/* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
|
/* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
|
||||||
* returning structures/unions is different between Windows and gcc on i386. */
|
* returning structures/unions is different between Windows and gcc on i386. */
|
||||||
LONG_PTR RPC_VAR_ENTRY
|
LONG_PTR RPC_VAR_ENTRY
|
||||||
|
@ -659,6 +663,13 @@ LONG_PTR RPC_VAR_ENTRY
|
||||||
NdrAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
NdrAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
||||||
LONG_PTR RPC_VAR_ENTRY
|
LONG_PTR RPC_VAR_ENTRY
|
||||||
NdrDcomAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
NdrDcomAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
||||||
|
#else
|
||||||
|
CLIENT_CALL_RETURN RPC_VAR_ENTRY NdrClientCall2(
|
||||||
|
PMIDL_STUB_DESC pStubDescriptor,
|
||||||
|
PFORMAT_STRING pFormat,
|
||||||
|
...
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
NdrServerCall2( PRPC_MESSAGE pRpcMsg );
|
NdrServerCall2( PRPC_MESSAGE pRpcMsg );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue