summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/wordsize.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/krb5/wordsize.h b/src/include/krb5/wordsize.h
new file mode 100644
index 000000000..afcedf2c1
--- /dev/null
+++ b/src/include/krb5/wordsize.h
@@ -0,0 +1,39 @@
+/*
+ * $Source$
+ * $Author$
+ * $Id$
+ *
+ * Copyright 1989 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/mit-copyright.h>.
+ *
+ * Word-size related definition.
+ */
+
+#include <krb5/mit-copyright.h>
+
+#ifndef __KRB_WORDSIZE__
+#define __KRB_WORDSIZE__
+
+#ifdef BITS16
+#define __OK
+typedef int int16;
+typedef long int32;
+typedef unsigned char octet;
+#endif
+
+#ifdef BITS32
+#define __OK
+typedef short int16;
+typedef int int32;
+typedef unsigned char octet;
+#endif
+
+#ifndef __OK
+ Error: must define word size!
+#endif __OK
+
+#undef __OK
+
+#endif /* __KRB_WORDSIZE__ */