diff options
Diffstat (limited to 'psxdev')
-rw-r--r-- | psxdev/xadecode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psxdev/xadecode.h b/psxdev/xadecode.h index b886285..560ae73 100644 --- a/psxdev/xadecode.h +++ b/psxdev/xadecode.h @@ -28,8 +28,10 @@ #define XANONE 0x200 /* for application use only! */ #define XAAV 0x400 /* for application use only! */ +#ifndef max #define max(a,b) (a<b?b:a) #define min(a,b) (a>b?b:a) +#endif #define FXD_FxdToPCM(dt) (max(min((short)((dt)>>16), 32767), -32768)) #define DblToPCM(dt) (short)(max(min((dt), 32767), -32768)) |