diff --git a/src/hardware/hw_main.h b/src/hardware/hw_main.h index 6dc0d23a6..9fd4faa5d 100644 --- a/src/hardware/hw_main.h +++ b/src/hardware/hw_main.h @@ -34,6 +34,10 @@ #define GLENCORE +#ifdef __cplusplus +extern "C" { +#endif + // Startup & Shutdown the hardware mode renderer void HWR_Startup(void); void HWR_Shutdown(void); @@ -228,4 +232,8 @@ FUNCINLINE static ATTRINLINE boolean HWR_PalRenderFlashpal(void) return (cv_glflashpal.value && HWR_ShouldUsePaletteRendering()); } +#ifdef __cplusplus +}// extern "C" +#endif + #endif