From a553a7fbd48711f901f4801adc55e0c476a01ad1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 30 Jul 2015 00:07:56 +0200 Subject: [PATCH] (QNX) Buildfix --- mednafen/clamp.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mednafen/clamp.h b/mednafen/clamp.h index 46682c52..96669e86 100644 --- a/mednafen/clamp.h +++ b/mednafen/clamp.h @@ -1,6 +1,15 @@ #ifndef __MDFN_CLAMP_H #define __MDFN_CLAMP_H +#ifdef __cplusplus +extern "C" { +#endif + +#include +#ifndef _WIN32 +#include +#endif + static INLINE int32 clamp_to_u8(int32 i) { if(i & 0xFFFFFF00) @@ -30,4 +39,8 @@ static INLINE void clamp(int32_t *val, ssize_t min, ssize_t max) if ( (int16_t)val != val ) \ val = (val >> 31) ^ 0x7FFF; +#ifdef __cplusplus +} +#endif + #endif