summaryrefslogtreecommitdiffstats
path: root/src/include/krb5/config.h
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-02-27 21:32:03 +0000
committerKeith Vetter <keithv@fusion.com>1995-02-27 21:32:03 +0000
commit95a3c7fe3fca3eea7dcf4cd01e98deb4bf37b812 (patch)
treeb4b2023082ca92739186a016fae37de6df6a37d5 /src/include/krb5/config.h
parent80746975a8bb5a124447ea359ccfb179afe69704 (diff)
Converted the krb5/krb directory to work under windows. Mostly added the
windows INTERFACE keyword to functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5002 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5/config.h')
-rw-r--r--src/include/krb5/config.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/include/krb5/config.h b/src/include/krb5/config.h
index 039433969..3f03ddae8 100644
--- a/src/include/krb5/config.h
+++ b/src/include/krb5/config.h
@@ -55,10 +55,21 @@ typedef unsigned char u_char;
#endif
#ifndef INTERFACE
-#define INTERFACE __far __export __pascal
+#define INTERFACE __far __export __pascal
+#define INTERFACE_C __far __export __cdecl
#endif
#define FAR __far
+/*
+ * The following defines are needed to make <windows.h> work
+ * in stdc mode (/Za flag). Winsock.h needs <windows.h>.
+ */
+#define _far __far
+#define _near __near
+#define _pascal __pascal
+#define _cdecl __cdecl
+#define _huge __huge
+
#else /* Rest of include file is for non-Microloss-Windows */
#ifndef KRB5_AUTOCONF__
@@ -116,7 +127,9 @@ typedef unsigned char u_char;
* just define it as NULL.
*/
#define INTERFACE
+#define INTERFACE_C
#define FAR
+#define labs(x) abs(x)
#endif /* __windows__ */