r24350: Remove offsetof() replacement to see if there are actually any
authorJelmer Vernooij <jelmer@samba.org>
Sun, 12 Aug 2007 12:21:34 +0000 (12:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:01:42 +0000 (15:01 -0500)
hosts that don't have it.
(This used to be commit b37d86242de1ee82b0cd760d965f8ad37a83cf09)

source4/lib/replace/README
source4/lib/replace/replace.h

index e7b89936c0f6520ed707e93958c00230b1399e61..77558b2ca96718f95c3e58a950b0697f1c685e70 100644 (file)
@@ -92,7 +92,6 @@ ZERO_STRUCTPN
 ZERO_ARRAY
 ARRAY_SIZE
 PTR_DIFF
-offsetof
 
 Headers:
 stdint.h
index e827719951f813c2c6d47b698f2ab41c247799fe..06173bd84b963e68fd9b980ff2bd7bd88c7987f1 100644 (file)
 #define QSORT_CAST (int (*)(const void *, const void *))
 #endif
 
-#ifndef offsetof
-#define offsetof(t,f) ((unsigned int)&((t *)0)->f)
-#endif
-
 #ifdef HAVE_STDINT_H
 #include <stdint.h>
 /* force off HAVE_INTTYPES_H so that roken doesn't try to include both,