From: Theodore Tso Date: Fri, 3 Feb 1995 22:24:51 +0000 (+0000) Subject: Add SIZEOF_FOO checks to properly define KRB_INT32 X-Git-Tag: krb5-1.0-beta5~746 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=63ef2d259bb9dcbaf37ebebca4932b178272ee5a;p=krb5.git Add SIZEOF_FOO checks to properly define KRB_INT32 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4909 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index db9cd7e5f..e5a298ccf 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 3 17:23:45 1995 Theodore Y. Ts'o (tytso@dcl) + + * pcbc_encrypt.c: Add SIZEOF_FOO checks to properly define + KRB_INT32 + Wed Jan 18 15:12:18 1995 Theodore Y. Ts'o (tytso@dcl) * read_passwd.c (des_read_password): Declare global_context and diff --git a/src/lib/des425/pcbc_encrypt.c b/src/lib/des425/pcbc_encrypt.c index 45de20bc0..f0793355b 100644 --- a/src/lib/des425/pcbc_encrypt.c +++ b/src/lib/des425/pcbc_encrypt.c @@ -22,8 +22,18 @@ #include #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