Add SIZEOF_FOO checks to properly define KRB_INT32
authorTheodore Tso <tytso@mit.edu>
Fri, 3 Feb 1995 22:24:51 +0000 (22:24 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 3 Feb 1995 22:24:51 +0000 (22:24 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4909 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/des425/ChangeLog
src/lib/des425/pcbc_encrypt.c

index db9cd7e5f4248255ad26a259c3392fd91a256a90..e5a298ccf64db823dcd373cccac3e7d3d5392944 100644 (file)
@@ -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
index 45de20bc053d059052d6428a72eac618526b8b91..f0793355bb8ae5b4e8ea8360d57b3fae7aa02990 100644 (file)
 #include <krb5/osconf.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