[1/2] d3dx8: Make d3dx8core.h C++ compatible.

Francois Gouget fgouget at free.fr
Mon Feb 4 17:04:37 CST 2008


---
 include/d3dx8core.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/include/d3dx8core.h b/include/d3dx8core.h
index f4698ea..7e6806b 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 */
-- 
1.5.3.8




More information about the wine-patches mailing list