summaryrefslogtreecommitdiffstats
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
authorBrad Hards <bradh@frogmouth.net>2009-04-22 10:32:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-04-22 10:36:47 +0200
commit703d5897701c22250a2d6e8ffba9ecf01db58f1f (patch)
tree5abc9e748291ae72855c9d0d50f6df593fcd959b /lib/replace/replace.h
parent7a9be21916589f2c2956e8b264648b66d074bfcb (diff)
downloadsamba-703d5897701c22250a2d6e8ffba9ecf01db58f1f.tar.gz
samba-703d5897701c22250a2d6e8ffba9ecf01db58f1f.tar.xz
samba-703d5897701c22250a2d6e8ffba9ecf01db58f1f.zip
Avoid using deprecated form of AC_CHECK_TYPE.
libreplace makes use of an older form of AC_CHECK_TYPE which basically provides a fallback definition for the type if it isn't available. http://www.gnu.org/software/hello/manual/autoconf/Obsolete-Macros.html#Obsolete-Macros shows why this isn't a good idea (its not so important, except for pointer types). This patch partly addresses the issue. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'lib/replace/replace.h')
-rw-r--r--lib/replace/replace.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index c5b8676acf..fe1f732acb 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -535,6 +535,18 @@ typedef int bool;
#endif
#endif
+#if !defined(HAVE_INTPTR_T)
+typedef long long intptr_t ;
+#endif
+
+#if !defined(HAVE_UINTPTR_T)
+typedef unsigned long long uintptr_t ;
+#endif
+
+#if !defined(HAVE_PTRDIFF_T)
+typedef unsigned long long ptrdiff_t ;
+#endif
+
/*
* to prevent <rpcsvc/yp_prot.h> from doing a redefine of 'bool'
*