diff options
author | Måns Rullgård <mans@mansr.com> | 2009-02-21 16:03:30 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-02-21 16:03:30 +0000 |
commit | 28499cc8d8ead4075fe0adfc21cd977004395402 (patch) | |
tree | 17c676791538f70e224425ae8f5f02689f3ec8b8 | |
parent | f4870943ea82ad7e8112037c7a205cbef1a89ff3 (diff) | |
download | ffmpeg-28499cc8d8ead4075fe0adfc21cd977004395402.tar.gz |
Correct, portable definition of INT_BIT
Originally committed as revision 17480 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/internal.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 7041be2d6b..f5f769e2c0 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -88,11 +88,7 @@ #endif #ifndef INT_BIT -# if INT_MAX != 2147483647 -# define INT_BIT 64 -# else -# define INT_BIT 32 -# endif +# define INT_BIT (CHAR_BIT * sizeof(int)) #endif #if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC) |