From 0f51933971f6bb695ef88c03e2c3e76c61d1c95f Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Mon, 17 Mar 2008 15:41:30 -0600 Subject: [PATCH] don't define offsetof since it's standard --- common/common.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/common.h b/common/common.h index 2c905b53..584bcd76 100644 --- a/common/common.h +++ b/common/common.h @@ -36,10 +36,6 @@ #define XCHG(type,a,b) { type t = a; a = b; b = t; } #define FIX8(f) ((int)(f*(1<<8)+.5)) -#ifndef offsetof -#define offsetof(T,F) ((unsigned long)((char *)&((T *)0)->F)) -#endif - #define CHECKED_MALLOC( var, size )\ {\ var = x264_malloc( size );\ @@ -64,6 +60,7 @@ ****************************************************************************/ #include "osdep.h" #include +#include #include #include #include -- 2.50.1