]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add detection of intptr_t and uintptr_t to configure process
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 21 Jan 2009 13:12:43 +0000 (13:12 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 21 Jan 2009 13:12:43 +0000 (13:12 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8392 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/bc_types.h

index 00254b2e7c293c33bc7eef2a8d7768a59b28f2b2..76ecd86d58b75bce679fb49543de15afce0db8c0 100644 (file)
@@ -161,6 +161,31 @@ typedef u_int64_t u_intmax_t;
 # endif
 #endif
 
+#ifndef HAVE_INTPTR_T
+#define HAVE_INTPTR_T 1
+# if (SIZEOF_INT_P == 4)
+typedef int32_t intptr_t;
+# else
+#  if (SIZEOF_INT_P == 8)
+typedef int64_t intptr_t;
+#  else
+#   error "Can't find sizeof pointer. Required!"
+#  endif
+# endif
+#endif
+
+#ifndef HAVE_UINTPTR_T
+#define HAVE_UINTPTR_T 1
+# if (SIZEOF_INT_P == 4)
+typedef uint32_t uintptr_t;
+# else
+#  if (SIZEOF_INT_P == 8)
+typedef uint64_t uintptr_t;
+#  else
+#   error "Can't find sizeof pointer. Required!"
+#  endif
+# endif
+#endif
 
 /* Limits for the above types. */
 #undef INT8_MIN