diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-02 01:42:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:13 -0500 |
commit | 26c6b4c70bd85d8030a96651f2a255a4d48fcda1 (patch) | |
tree | 9d043fc9b4b7ed836066487d9ca354a78adc0136 /source4/lib/ldb/include | |
parent | 71107c0eb723545ef5807d58af2ab2f5d99d7206 (diff) | |
download | samba-26c6b4c70bd85d8030a96651f2a255a4d48fcda1.tar.gz samba-26c6b4c70bd85d8030a96651f2a255a4d48fcda1.tar.bz2 samba-26c6b4c70bd85d8030a96651f2a255a4d48fcda1.zip |
r3449: more include file reduction
the ldb part isn't ideal, I will have to think of a better solution
(This used to be commit 6b1f86aea8427a8e957b1aeb0ec2f507297f07cb)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r-- | source4/lib/ldb/include/includes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/includes.h b/source4/lib/ldb/include/includes.h index 1d3ac2a50e..44ff672266 100644 --- a/source4/lib/ldb/include/includes.h +++ b/source4/lib/ldb/include/includes.h @@ -28,3 +28,11 @@ #include "tdb.h" #include "proto.h" +#ifdef HAVE_INTPTR_T +#define discard_const(ptr) ((void *)((intptr_t)(ptr))) +#else +#define discard_const(ptr) ((void *)(ptr)) +#endif +#define discard_const_p(type, ptr) ((type *)discard_const(ptr)) + + |