diff --git a/thread.h b/thread.h index ef01140c52..aa8685cec8 100644 --- a/thread.h +++ b/thread.h @@ -20,6 +20,10 @@ #include "boolean.h" #include +#if defined(__cplusplus) && !defined(MSC_VER) +extern "C" { +#endif + // Implements the bare minimum needed for RetroArch. :) typedef struct sthread sthread_t; @@ -88,5 +92,8 @@ static inline void retro_sleep(unsigned msec) } #endif +#if defined(__cplusplus) && !defined(MSC_VER) +} #endif +#endif