From a9c82dbe211b59fd58f386f85dac8a2c57ca8e97 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 11 Jul 2022 03:59:35 +0300 Subject: [PATCH] public: make crtlib linkable with C++ --- public/crtlib.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/crtlib.h b/public/crtlib.h index 6c1ad224..5b86502a 100644 --- a/public/crtlib.h +++ b/public/crtlib.h @@ -21,6 +21,11 @@ GNU General Public License for more details. #include "build.h" #include "xash3d_types.h" +#ifdef __cplusplus +extern "C" +{ +#endif + // timestamp modes enum { @@ -145,5 +150,8 @@ static inline char *Q_stristr( const char *s1, const char *s2 ) char *Q_stristr( const char *s1, const char *s2 ); #endif // defined( HAVE_STRCASESTR ) +#ifdef __cplusplus +} +#endif #endif//STDLIB_H