From bc13766a76c88e45117c8a1fd95a08d2c96789cd Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 11 Aug 2007 21:30:19 +0000 Subject: r24337: Make libreplace provide offsetof. (This used to be commit 48d1aa4fcf6a323e3e6a14825f83cd20e3fc3a26) --- source4/lib/tdb/common/tdb_private.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source4/lib/tdb') diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h index 3871c29170..99fa4434c0 100644 --- a/source4/lib/tdb/common/tdb_private.h +++ b/source4/lib/tdb/common/tdb_private.h @@ -37,10 +37,6 @@ 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) -- cgit