Commit eb5d62cb authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

include: Add extern "C" directives where needed.

parent 3e1af081
...@@ -206,6 +206,11 @@ DECLARE_INTERFACE_(ID3D10ShaderReflection, IUnknown) ...@@ -206,6 +206,11 @@ DECLARE_INTERFACE_(ID3D10ShaderReflection, IUnknown)
}; };
#undef INTERFACE #undef INTERFACE
#ifdef __cplusplus
extern "C" {
#endif
HRESULT WINAPI D3D10CompileShader(LPCSTR data, SIZE_T data_size, LPCSTR filename, HRESULT WINAPI D3D10CompileShader(LPCSTR data, SIZE_T data_size, LPCSTR filename,
const D3D10_SHADER_MACRO *defines, ID3D10Include *include, LPCSTR entrypoint, const D3D10_SHADER_MACRO *defines, ID3D10Include *include, LPCSTR entrypoint,
LPCSTR profile, UINT flags, ID3D10Blob **shader, ID3D10Blob **error_messages); LPCSTR profile, UINT flags, ID3D10Blob **shader, ID3D10Blob **error_messages);
...@@ -219,4 +224,8 @@ HRESULT WINAPI D3D10GetOutputSignatureBlob(const void *data, SIZE_T data_size, I ...@@ -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 D3D10GetInputAndOutputSignatureBlob(const void *data, SIZE_T data_size, ID3D10Blob **blob);
HRESULT WINAPI D3D10GetShaderDebugInfo(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 */ #endif /* __WINE_D3D10SHADER_H */
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
#ifndef __WINE_DSROLE_H #ifndef __WINE_DSROLE_H
#define __WINE_DSROLE_H #define __WINE_DSROLE_H
#ifdef __cplusplus
extern "C" {
#endif
#define DSROLE_PRIMARY_DS_RUNNING 0x00000001 #define DSROLE_PRIMARY_DS_RUNNING 0x00000001
#define DSROLE_PRIMARY_DS_MIXED_MODE 0x00000002 #define DSROLE_PRIMARY_DS_MIXED_MODE 0x00000002
#define DSROLE_UPGRADE_IN_PROGRESS 0x00000004 #define DSROLE_UPGRADE_IN_PROGRESS 0x00000004
...@@ -81,4 +85,8 @@ typedef struct _DSROLE_OPERATION_STATE_INFO ...@@ -81,4 +85,8 @@ typedef struct _DSROLE_OPERATION_STATE_INFO
VOID WINAPI DsRoleFreeMemory(IN PVOID Buffer); VOID WINAPI DsRoleFreeMemory(IN PVOID Buffer);
DWORD WINAPI DsRoleGetPrimaryDomainInformation(IN LPCWSTR lpServer OPTIONAL, IN DSROLE_PRIMARY_DOMAIN_INFO_LEVEL InfoLevel, OUT PBYTE *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 */ #endif /* __WINE_DSROLE_H */
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
#ifndef __WINE_NPAPI_H__ #ifndef __WINE_NPAPI_H__
#define __WINE_NPAPI_H__ #define __WINE_NPAPI_H__
#ifdef __cplusplus
extern "C" {
#endif
/* capabilities */ /* capabilities */
#define WNNC_SPEC_VERSION 0x00000001 #define WNNC_SPEC_VERSION 0x00000001
#define WNNC_SPEC_VERSION51 0x00050001 #define WNNC_SPEC_VERSION51 0x00050001
...@@ -208,4 +212,8 @@ typedef DWORD (APIENTRY *PF_AddConnectNotify)(LPNOTIFYINFO lpNotifyInfo, ...@@ -208,4 +212,8 @@ typedef DWORD (APIENTRY *PF_AddConnectNotify)(LPNOTIFYINFO lpNotifyInfo,
typedef DWORD (APIENTRY *PF_CancelConnectNotify)(LPNOTIFYINFO lpNotifyInfo, typedef DWORD (APIENTRY *PF_CancelConnectNotify)(LPNOTIFYINFO lpNotifyInfo,
LPNOTIFYADD lpAddInfo); LPNOTIFYADD lpAddInfo);
#ifdef __cplusplus
}
#endif
#endif /* ndef __WINE_NPAPI_H__ */ #endif /* ndef __WINE_NPAPI_H__ */
...@@ -261,6 +261,10 @@ typedef struct WS(in_pktinfo) { ...@@ -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 } #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 */ #endif /* USE_WS_PREFIX */
#ifdef __cplusplus
extern "C" {
#endif
static inline BOOL WS(IN6_IS_ADDR_LOOPBACK) ( const IN6_ADDR *a ) static inline BOOL WS(IN6_IS_ADDR_LOOPBACK) ( const IN6_ADDR *a )
{ {
return (BOOL)((a->s6_words[0] == 0) && return (BOOL)((a->s6_words[0] == 0) &&
...@@ -273,4 +277,8 @@ static inline BOOL WS(IN6_IS_ADDR_LOOPBACK) ( const IN6_ADDR *a ) ...@@ -273,4 +277,8 @@ static inline BOOL WS(IN6_IS_ADDR_LOOPBACK) ( const IN6_ADDR *a )
(a->s6_words[7] == 0x0100)); (a->s6_words[7] == 0x0100));
} }
#ifdef __cplusplus
}
#endif
#endif /* __WS2IPDEF__ */ #endif /* __WS2IPDEF__ */
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