mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2025-02-11 20:15:58 +00:00
(QNX) Buildfix
This commit is contained in:
parent
ed76b0e040
commit
a553a7fbd4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user