From 4081639c51e82256a4b4354dcb86de7da67ac8f7 Mon Sep 17 00:00:00 2001 From: Indev Date: Thu, 5 Jun 2025 18:28:55 +0300 Subject: [PATCH] Add ifdef __cplusplus into hardware/hw_main.h --- src/hardware/hw_main.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hardware/hw_main.h b/src/hardware/hw_main.h index 08f2d3d87..53f6acfe4 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); @@ -233,4 +237,8 @@ FUNCINLINE static ATTRINLINE boolean HWR_PalRenderFlashpal(void) return (cv_glflashpal.value && HWR_ShouldUsePaletteRendering()); } +#ifdef __cplusplus +}// extern "C" +#endif + #endif