* config.win: new file--windows base template for config.h
authorJohn Gilmore <gnu@toad.com>
Wed, 15 Feb 1995 01:52:05 +0000 (01:52 +0000)
committerJohn Gilmore <gnu@toad.com>
Wed, 15 Feb 1995 01:52:05 +0000 (01:52 +0000)
* config.h: added API definition default of NULL

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4947 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/stock/ChangeLog
src/include/krb5/stock/config.h
src/include/krb5/stock/config.win [new file with mode: 0644]

index 870eba6ddc774a95f9049da074a623e230b04c2d..09c71824793e3a034801755778d8f69071bdb34c 100644 (file)
@@ -1,3 +1,8 @@
+Mon Feb 6 20:5:58 1995 Keith Vetter (keithv@fusion.com)
+
+       * config.win: new file--windows base template for config.h
+       * config.h: added API definition default of NULL
+
 Thu Jan  5 17:01:03 1995  Theodore Y. Ts'o  (tytso@dcl)
 
        * Use the service names kerberos and kerberos-sec, instead of
index 074106cf7493bb7473cd76b18078bea6678cb017..03ff5f9e2a5e977c950ba99addf0f6cd7f184995 100644 (file)
  */
 #undef KRBCONF_KDC_MODIFIES_KDB
     
+/* 
+ * Windows requires a different api interface to each function. Here
+ * just define it as NULL.
+ */
+#define API
+#define FAR
 
 #endif /* KRB5_CONFIG__ */
 
diff --git a/src/include/krb5/stock/config.win b/src/include/krb5/stock/config.win
new file mode 100644 (file)
index 0000000..9ce614b
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * include/stock/config.win
+ *
+ * Copyright 1988, 1994 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * Export of this software from the United States of America may
+ *   require a specific license from the United States Government.
+ *   It is the responsibility of any person or organization contemplating
+ *   export to obtain such a license before exporting.
+ * 
+ * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
+ * distribute this software and its documentation for any purpose and
+ * without fee is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright notice and
+ * this permission notice appear in supporting documentation, and that
+ * the name of M.I.T. not be used in advertising or publicity pertaining
+ * to distribution of the software without specific, written prior
+ * permission.  M.I.T. makes no representations about the suitability of
+ * this software for any purpose.  It is provided "as is" without express
+ * or implied warranty.
+ * 
+ * Machine-type definitions: IBM PC 80386 running WINDOWS
+ */
+
+#ifndef KRB5_CONFIG__
+#define KRB5_CONFIG__
+
+#define KRB5_DBM_COMPAT__                       /* Don't load dbm.h */
+#define KRB5_KDB5__                             /* Don't load kdb.h */
+#define KRB5_KDB5_DBM__                         /* Don't load kdb_dbm.h */
+
+#define BITS16
+
+#define USE_STRING_H 
+#define HAVE_SRAND
+
+#ifndef _SIZE_T_DEFINED
+typedef unsigned int size_t;
+#define _SIZE_T_DEFINED
+#endif 
+
+#ifndef _U_TYPES_DEFINED
+typedef unsigned long u_long;
+typedef unsigned char u_char;
+#define _U_LONG_DEFINED
+#endif 
+
+#ifndef API
+#define API __far __export __pascal
+#endif
+#define FAR __far
+
+#endif /* KRB5_CONFIG__ */