diff options
author | Theodore Tso <tytso@mit.edu> | 1995-02-08 19:02:01 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-02-08 19:02:01 +0000 |
commit | 709d571ca7d938d4e3151e10a9759b59c23fc722 (patch) | |
tree | e1211a9d791718fe79fe2e486119ad5762ccc77b | |
parent | c415df7456d55016cf565ba27ef38f25ea5416fd (diff) | |
download | krb5-709d571ca7d938d4e3151e10a9759b59c23fc722.tar.gz krb5-709d571ca7d938d4e3151e10a9759b59c23fc722.tar.xz krb5-709d571ca7d938d4e3151e10a9759b59c23fc722.zip |
Add KRB5_INT32 definitions for non-32 int platforms
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4925 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/crypto/des/ChangeLog | 4 | ||||
-rw-r--r-- | src/lib/crypto/des/des.h | 8 |
2 files changed, 12 insertions, 0 deletions
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 |