From: Eric Bollengier Date: Wed, 21 Jan 2009 13:12:43 +0000 (+0000) Subject: ebl Add detection of intptr_t and uintptr_t to configure process X-Git-Tag: Release-3.0.0~285 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c849ac0ac604657f9fef02b305d2da5184f03b1;p=bacula%2Fbacula 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 --- 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