summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-02-21 16:03:30 +0000
committerMåns Rullgård <mans@mansr.com>2009-02-21 16:03:30 +0000
commit28499cc8d8ead4075fe0adfc21cd977004395402 (patch)
tree17c676791538f70e224425ae8f5f02689f3ec8b8 /libavutil
parentf4870943ea82ad7e8112037c7a205cbef1a89ff3 (diff)
Correct, portable definition of INT_BIT
Originally committed as revision 17480 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/internal.h6
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)