+Fri Feb 3 07:57:31 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * configure.in:
+ * wordsize.h: Don't use BITS16, BITS32, etc. anymore. Use
+ autoconf's SIZEOF_INT and SIZEOF_LONG definitions to make
+ things work.
+
Mon Jan 30 15:43:19 1995 Chris Provenzano (proven@mit.edu)
* func-proto.h Added krb5_keytype arg to rb5_rdreq_key_proc.
#ifndef KRB5_WORDSIZE__
#define KRB5_WORDSIZE__
-#ifdef BITS16
-#define __OK
-typedef int krb5_int16;
-typedef long krb5_int32;
-
typedef unsigned char krb5_octet;
typedef unsigned char krb5_ui_1;
-typedef unsigned int krb5_ui_2;
-typedef unsigned long krb5_ui_4;
-#endif
-#ifdef BITS32
-#define __OK
+#if (SIZEOF_INT == 2)
+typedef int krb5_int16;
+typedef unsigned int krb5_ui_2;
+#elif (SIZEOF_SHORT == 2)
typedef short krb5_int16;
-typedef int krb5_int32;
-typedef unsigned char krb5_octet;
-typedef unsigned char krb5_ui_1;
typedef unsigned short krb5_ui_2;
-typedef unsigned int krb5_ui_4;
+#else
+ ?==error: undefined 16 bit type
#endif
-#ifdef NOT_RIGHT_YET
-/*
- * Incorporated from the Sandia changes; but this can't be right; if
- * we're on a 64 bit machine, an int shouldn't be 32 bits!?!
- * [tytso:19920616.2224EDT]
- */
-#ifdef BITS64
-#define __OK
-typedef short krb5_int16;
+#if (SIZEOF_INT == 4)
typedef int krb5_int32;
-typedef unsigned char krb5_octet;
-typedef unsigned char krb5_ui_1;
-typedef unsigned short krb5_ui_2;
typedef unsigned int krb5_ui_4;
+#elif (SIZEOF_LONG == 4)
+typedef long krb5_int32;
+typedef unsigned long krb5_ui_4;
+#elif (SIZEOF_SHORT == 4)
+typedef short krb5_int32;
+typedef unsigned short krb5_ui_4;
+#else
+ ?== error: undefined 32 bit type
#endif
-#endif /* NOT RIGHT YET */
-
-#ifndef __OK
- ?==error: must define word size!
-#endif /* __OK */
-
-#undef __OK
#define KRB5_INT32_MAX 2147483647
/* this strange form is necessary since - is a unary operator, not a sign