summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-27 03:11:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:01 -0500
commit675f81eed3086682faeca34e56d441c6e38bd800 (patch)
tree058269516d973ccc8fbfdd85183c3590c7df496f /source4/lib/ldb/include
parentf895df9772a49bc1e3ff0d2078f2e9d3dc2b7f4a (diff)
downloadsamba-675f81eed3086682faeca34e56d441c6e38bd800.tar.gz
samba-675f81eed3086682faeca34e56d441c6e38bd800.tar.bz2
samba-675f81eed3086682faeca34e56d441c6e38bd800.zip
r10525: change from AC_CHECK_TYPES() to AC_CHECK_TYPE() for intptr_t, so the
type is always available, which means we need less #ifdefs (This used to be commit d4af4b11ae69a63fa3b2048e6d576055d86d2bb4)
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/includes.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/lib/ldb/include/includes.h b/source4/lib/ldb/include/includes.h
index 8b513e20c7..4372d6b3f9 100644
--- a/source4/lib/ldb/include/includes.h
+++ b/source4/lib/ldb/include/includes.h
@@ -26,9 +26,5 @@
#include "ldb_private.h"
#include "talloc.h"
-#if defined(__intptr_t_defined) || defined(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))