From e460a6e30539086ff3c4bdb264ab57f6e045ad71 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 20 Mar 2009 05:30:12 +0000 Subject: [PATCH] static-inline-macros-20090320 LICENSE IPL10 FIXES 124515 add back support for AFS_64BIT_ENV --- src/config/stds.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/stds.h b/src/config/stds.h index 25256f9b4..4ed7ad9bf 100644 --- a/src/config/stds.h +++ b/src/config/stds.h @@ -305,7 +305,12 @@ typedef struct afsUUID afsUUID; #define hdr_static_inline(x) static inline x #endif +#ifdef AFS_64BIT_ENV hdr_static_inline(afs_int64) afs_cast_int32(afs_int32 d) { return (afs_int64) d; } hdr_static_inline(afs_uint64) afs_cast_uint32(afs_uint32 d) { return (afs_uint64) d; } +#else +hdr_static_inline(long long) afs_cast_int32(afs_int32 d) { return (long long) d; } +hdr_static_inline(unsigned long long) afs_cast_uint32(afs_uint32 d) { return (unsigned long long) d; } +#endif #endif /* OPENAFS_CONFIG_AFS_STDS_H */ -- 2.39.5