Mercurial > libavutil.hg
changeset 666:86393a769260 libavutil
Correct, portable definition of INT_BIT
author | mru |
---|---|
date | Sat, 21 Feb 2009 16:03:30 +0000 |
parents | 6780cc679b76 |
children | 998344532d61 |
files | internal.h |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/internal.h Thu Feb 12 02:02:42 2009 +0000 +++ b/internal.h Sat Feb 21 16:03:30 2009 +0000 @@ -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)