From 8972324fb6970231fb20731d7d2860fc3eea7c5a Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Fri, 17 Mar 1995 01:35:41 +0000 Subject: [PATCH] Problem with the error routines and windows definitions git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5137 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/ChangeLog | 6 ++++++ src/util/et/com_err.h | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 7b487c4f2..7815a0ef2 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,9 @@ +Wed Mar 16 17:30:00 1995 Keith Vetter (keithv@fusion.com) + + * com_err.h: problem with this file needing k5-config for windows + stuff but many application programs don't include it. So for + now I've put the windows stuff that is needed directly into it. + Wed Mar 15 23:02:14 1995 Keith Vetter (keithv@fusion.com) * com_err.c: made to work on the PC. Biggest changes was that diff --git a/src/util/et/com_err.h b/src/util/et/com_err.h index f61822aed..0ff858034 100644 --- a/src/util/et/com_err.h +++ b/src/util/et/com_err.h @@ -23,6 +23,20 @@ #include #endif +/* This should be part of k5-config.h but many application + * programs are not including that file. We probably want to + * come up with a better way of handling this problem. + */ +#ifndef INTERFACE +#ifdef _WINDOWS +#define INTERFACE __far __export __pascal +#define INTERFACE_C __far __export __cdecl +#else +#define INTERFACE +#define INTERFACE_C +#endif +#endif + #ifdef __STDC__ /* ANSI C -- use prototypes etc */ extern void INTERFACE_C com_err (const char *, long, const char *, ...); -- 2.26.2