From 91d3a794e8b756dbcb7047c77acf1a7f862627dd Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 5 Feb 2008 00:04:37 +0100 Subject: [PATCH] d3dx8: Make d3dx8core.h C++ compatible. --- include/d3dx8core.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/d3dx8core.h b/include/d3dx8core.h index f4698ea6ea3..7e6806bc7ed 100644 --- a/include/d3dx8core.h +++ b/include/d3dx8core.h @@ -105,6 +105,10 @@ DECLARE_INTERFACE_(ID3DXFont,IUnknown) /************************************************************************************* * Define entrypoints */ +#ifdef __cplusplus +extern "C" { +#endif + HRESULT WINAPI D3DXCreateBuffer(DWORD NumBytes, LPD3DXBUFFER* ppBuffer); HRESULT WINAPI D3DXCreateFont(LPDIRECT3DDEVICE8 pDevice, HFONT hFont, LPD3DXFONT* ppFont); UINT WINAPI D3DXGetFVFVertexSize(DWORD FVF); @@ -121,4 +125,8 @@ HRESULT WINAPI D3DXAssembleShaderFromFileW(LPWSTR pSrcFile, DWORD Flags, LPD3DXBUFFER* ppCompiledShader, LPD3DXBUFFER* ppCompilationErrors); +#ifdef __cplusplus +} +#endif + #endif /* __WINE_D3DX8CORE_H */