libavutil: drop offsetof() fallback definition
authorMans Rullgard <mans@mansr.com>
Wed, 8 Aug 2012 19:09:33 +0000 (20:09 +0100)
committerMans Rullgard <mans@mansr.com>
Thu, 9 Aug 2012 19:52:39 +0000 (20:52 +0100)
The only compiler I have that does not define the standard
offsetof() macro is "Bruce's C Compiler", a simple compiler
for producing 8/16-bit 8086 code, usually for use in early
stages of PC booting.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavutil/internal.h

index 58e5568..aa56c05 100644 (file)
@@ -56,10 +56,6 @@ struct AVDictionary {
 #    define INT_BIT (CHAR_BIT * sizeof(int))
 #endif
 
-#ifndef offsetof
-#    define offsetof(T, F) ((unsigned int)((char *)&((T *)0)->F))
-#endif
-
 /* debug stuff */
 
 #define av_abort()      do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)