[FFmpeg-cvslog] r17480 - trunk/libavutil/internal.h

mru subversion
Sat Feb 21 17:03:30 CET 2009


Author: mru
Date: Sat Feb 21 17:03:30 2009
New Revision: 17480

Log:
Correct, portable definition of INT_BIT

Modified:
   trunk/libavutil/internal.h

Modified: trunk/libavutil/internal.h
==============================================================================
--- trunk/libavutil/internal.h	Sat Feb 21 17:03:27 2009	(r17479)
+++ trunk/libavutil/internal.h	Sat Feb 21 17:03:30 2009	(r17480)
@@ -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)




More information about the ffmpeg-cvslog mailing list