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