projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f487094
)
Correct, portable definition of INT_BIT
author
Måns Rullgård
<mans@mansr.com>
Sat, 21 Feb 2009 16:03:30 +0000
(16:03 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Sat, 21 Feb 2009 16:03:30 +0000
(16:03 +0000)
Originally committed as revision 17480 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/internal.h
patch
|
blob
|
history
diff --git
a/libavutil/internal.h
b/libavutil/internal.h
index
7041be2
..
f5f769e
100644
(file)
--- 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)