From 2c849ac0ac604657f9fef02b305d2da5184f03b1 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 21 Jan 2009 13:12:43 +0000 Subject: [PATCH] ebl Add detection of intptr_t and uintptr_t to configure process git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8392 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/bc_types.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/bacula/src/bc_types.h b/bacula/src/bc_types.h index 00254b2e7c..76ecd86d58 100644 --- a/bacula/src/bc_types.h +++ b/bacula/src/bc_types.h @@ -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 -- 2.39.5