diff --git a/gfx/d3d/render_chain_driver.cpp b/gfx/d3d/render_chain_driver.c similarity index 100% rename from gfx/d3d/render_chain_driver.cpp rename to gfx/d3d/render_chain_driver.c diff --git a/gfx/d3d/render_chain_driver.h b/gfx/d3d/render_chain_driver.h index 504ac14af5..a92012f6bd 100644 --- a/gfx/d3d/render_chain_driver.h +++ b/gfx/d3d/render_chain_driver.h @@ -22,6 +22,10 @@ #include "../../libretro.h" #include "d3d_defines.h" +#ifdef __cplusplus +extern "C" { +#endif + struct LinkInfo { unsigned tex_w, tex_h; @@ -72,5 +76,9 @@ extern renderchain_driver_t null_renderchain; bool renderchain_init_first(const renderchain_driver_t **renderchain_driver, void **renderchain_handle); +#ifdef __cplusplus +} +#endif + #endif diff --git a/gfx/d3d/render_chain_null.cpp b/gfx/d3d/render_chain_null.c similarity index 100% rename from gfx/d3d/render_chain_null.cpp rename to gfx/d3d/render_chain_null.c diff --git a/griffin/griffin.c b/griffin/griffin.c index 714ea82be8..4d701a1574 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -226,14 +226,14 @@ VIDEO DRIVER #if defined(HAVE_D3D) #include "../gfx/d3d/d3d_wrapper.cpp" #include "../gfx/d3d/d3d.cpp" -#include "../gfx/d3d/render_chain_driver.cpp" +#include "../gfx/d3d/render_chain_driver.c" #ifdef _XBOX #include "../gfx/d3d/render_chain_xdk.cpp" #endif #ifdef HAVE_CG #include "../gfx/d3d/render_chain_cg.cpp" #endif -#include "../gfx/d3d/render_chain_null.cpp" +#include "../gfx/d3d/render_chain_null.c" #endif #if defined(GEKKO)