Mercurial > libavcodec.hg
diff common.h @ 2318:1925d732ea42 libavcodec
INT MIN/MAX patch by (Bohdan Horst <nexus at irc dot pl>)
author | michael |
---|---|
date | Sun, 24 Oct 2004 13:20:32 +0000 |
parents | 15cfba1b97b5 |
children | 26560d4fdb1f |
line wrap: on
line diff
--- a/common.h Sun Oct 24 02:59:36 2004 +0000 +++ b/common.h Sun Oct 24 13:20:32 2004 +0000 @@ -112,6 +112,18 @@ # endif /* other OS */ #endif /* HAVE_INTTYPES_H */ +#ifndef INT16_MIN +#define INT16_MIN (-0x7fff-1) +#endif + +#ifndef INT16_MAX +#define INT16_MAX 0x7fff +#endif + +#ifndef INT64_MIN +#define INT64_MIN (-0x7fffffffffffffffLL-1) +#endif + #ifndef INT64_MAX #define INT64_MAX int64_t_C(9223372036854775807) #endif