diff options
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r-- | libavcodec/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h index d398b397fb..02a491a58a 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -129,6 +129,14 @@ typedef unsigned int uint_fast16_t; typedef unsigned int uint_fast32_t; #endif +#ifndef INT_BIT +# if INT_MAX == INT64_MAX +# define INT_BIT 64 +# else +# define INT_BIT 32 +# endif +#endif + #if defined(CONFIG_OS2) || defined(CONFIG_SUNOS) static inline float floorf(float f) { return floor(f); |