From: Theodore Tso Date: Wed, 8 Feb 1995 19:02:01 +0000 (+0000) Subject: Add KRB5_INT32 definitions for non-32 int platforms X-Git-Tag: krb5-1.0-beta5~733 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=709d571ca7d938d4e3151e10a9759b59c23fc722;p=krb5.git Add KRB5_INT32 definitions for non-32 int platforms git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4925 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index c344fb9f4..7ece77f2f 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 8 13:59:05 1995 Theodore Y. Ts'o (tytso@dcl) + + * des.h: Add KRB5_INT32 definitions for non-32 int platforms. + Fri Feb 3 06:33:22 1995 Theodore Y. Ts'o (tytso@dcl) * des_int.h: Remove unused cruft from the file. diff --git a/src/lib/crypto/des/des.h b/src/lib/crypto/des/des.h index 81cfef3f4..3ada2e9dc 100644 --- a/src/lib/crypto/des/des.h +++ b/src/lib/crypto/des/des.h @@ -16,8 +16,16 @@ #include "k5-int.h" #ifndef KRB_INT32 +#if (SIZEOF_LONG == 4) #define KRB_INT32 long +#elif (SIZEOF_INT == 4) +#define KRB_INT32 int +#elif (SIZEOF_SHORT == 4) +#define KRB_INT32 short +#else + ?== No 32 bit type available #endif +#endif /* !KRB_INT32 */ #ifndef KRB_UINT32 #define KRB_UINT32 unsigned KRB_INT32 #endif