From: Jeffrey Altman Date: Fri, 20 Mar 2009 05:30:12 +0000 (+0000) Subject: static-inline-macros-20090320 X-Git-Tag: openafs-devel-1_5_61~428 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e460a6e30539086ff3c4bdb264ab57f6e045ad71;p=packages%2Fo%2Fopenafs.git static-inline-macros-20090320 LICENSE IPL10 FIXES 124515 add back support for AFS_64BIT_ENV --- 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 */