From cce198f66c47d73101c4c90833f21f7694b2a5fb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 26 Jun 2014 23:47:10 +0200 Subject: [PATCH] Don't add extern "C" namespace around thread.h if MSC_VER is defined --- thread.h | 7 +++++++ 1 file changed, 7 insertions(+) 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