diff options
-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 |