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 <[email protected]>
---
Also, this was added by kabi.  Need I say more?
---
 libavutil/internal.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavutil/internal.h b/libavutil/internal.h
index ce49bd2..1265b7e 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -51,10 +51,6 @@
 #    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)
-- 
1.7.11.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to