(QNX) Buildfix

This commit is contained in:
twinaphex 2015-07-30 00:07:56 +02:00
parent ed76b0e040
commit a553a7fbd4

View File

@ -1,6 +1,15 @@
#ifndef __MDFN_CLAMP_H
#define __MDFN_CLAMP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#ifndef _WIN32
#include <unistd.h>
#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