[x264-devel] commit: don't define offsetof since it's standard (Loren Merritt )

git version control git at videolan.org
Wed Mar 19 02:03:49 CET 2008


x264 | branch: master | Loren Merritt <pengvado at akuvian.org> | Mon Mar 17 15:41:30 2008 -0600| [205d011e2e8418d7cf90fc58589238d36e941942]

don't define offsetof since it's standard

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=205d011e2e8418d7cf90fc58589238d36e941942
---

 common/common.h |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/common/common.h b/common/common.h
index 2c905b5..584bcd7 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 <stdarg.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>



More information about the x264-devel mailing list