offsetof() is always present as shown in some
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Oct 2007 08:06:27 +0000 (10:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Oct 2007 08:06:27 +0000 (10:06 +0200)
libreplace testing.

metze

source/lib/tdb/common/tdb_private.h

index 032b0ca6382a6d26a2b581df93a16cb69b15a0a7..d2f2c23d7296901cf3d83f178fead2f34094df56 100644 (file)
 typedef uint32_t tdb_len_t;
 typedef uint32_t tdb_off_t;
 
-#ifndef offsetof
-#define offsetof(t,f) ((unsigned int)&((t *)0)->f)
-#endif
-
 #define TDB_MAGIC_FOOD "TDB file\n"
 #define TDB_VERSION (0x26011967 + 6)
 #define TDB_MAGIC (0x26011999U)