include: Add extern "C" directives where needed.

This commit is contained in:
Francois Gouget 2011-12-13 21:10:50 +01:00 committed by Alexandre Julliard
parent 3e1af081c0
commit eb5d62cbf7
4 changed files with 33 additions and 0 deletions

View File

@ -206,6 +206,11 @@ DECLARE_INTERFACE_(ID3D10ShaderReflection, IUnknown)
};
#undef INTERFACE
#ifdef __cplusplus
extern "C" {
#endif
HRESULT WINAPI D3D10CompileShader(LPCSTR data, SIZE_T data_size, LPCSTR filename,
const D3D10_SHADER_MACRO *defines, ID3D10Include *include, LPCSTR entrypoint,
LPCSTR profile, UINT flags, ID3D10Blob **shader, ID3D10Blob **error_messages);
@ -219,4 +224,8 @@ HRESULT WINAPI D3D10GetOutputSignatureBlob(const void *data, SIZE_T data_size, I
HRESULT WINAPI D3D10GetInputAndOutputSignatureBlob(const void *data, SIZE_T data_size, ID3D10Blob **blob);
HRESULT WINAPI D3D10GetShaderDebugInfo(const void *data, SIZE_T data_size, ID3D10Blob **blob);
#ifdef __cplusplus
}
#endif
#endif /* __WINE_D3D10SHADER_H */

View File

@ -21,6 +21,10 @@
#ifndef __WINE_DSROLE_H
#define __WINE_DSROLE_H
#ifdef __cplusplus
extern "C" {
#endif
#define DSROLE_PRIMARY_DS_RUNNING 0x00000001
#define DSROLE_PRIMARY_DS_MIXED_MODE 0x00000002
#define DSROLE_UPGRADE_IN_PROGRESS 0x00000004
@ -81,4 +85,8 @@ typedef struct _DSROLE_OPERATION_STATE_INFO
VOID WINAPI DsRoleFreeMemory(IN PVOID Buffer);
DWORD WINAPI DsRoleGetPrimaryDomainInformation(IN LPCWSTR lpServer OPTIONAL, IN DSROLE_PRIMARY_DOMAIN_INFO_LEVEL InfoLevel, OUT PBYTE *Buffer);
#ifdef __cplusplus
}
#endif
#endif /* __WINE_DSROLE_H */

View File

@ -18,6 +18,10 @@
#ifndef __WINE_NPAPI_H__
#define __WINE_NPAPI_H__
#ifdef __cplusplus
extern "C" {
#endif
/* capabilities */
#define WNNC_SPEC_VERSION 0x00000001
#define WNNC_SPEC_VERSION51 0x00050001
@ -208,4 +212,8 @@ typedef DWORD (APIENTRY *PF_AddConnectNotify)(LPNOTIFYINFO lpNotifyInfo,
typedef DWORD (APIENTRY *PF_CancelConnectNotify)(LPNOTIFYINFO lpNotifyInfo,
LPNOTIFYADD lpAddInfo);
#ifdef __cplusplus
}
#endif
#endif /* ndef __WINE_NPAPI_H__ */

View File

@ -261,6 +261,10 @@ typedef struct WS(in_pktinfo) {
#define WS_IN6ADDR_LOOPBACK_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }
#endif /* USE_WS_PREFIX */
#ifdef __cplusplus
extern "C" {
#endif
static inline BOOL WS(IN6_IS_ADDR_LOOPBACK) ( const IN6_ADDR *a )
{
return (BOOL)((a->s6_words[0] == 0) &&
@ -273,4 +277,8 @@ static inline BOOL WS(IN6_IS_ADDR_LOOPBACK) ( const IN6_ADDR *a )
(a->s6_words[7] == 0x0100));
}
#ifdef __cplusplus
}
#endif
#endif /* __WS2IPDEF__ */