summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-04-14 00:56:21 +0000
committerKeith Vetter <keithv@fusion.com>1995-04-14 00:56:21 +0000
commit48e59557cdff501a25c809cda3f1dd34a27cc52f (patch)
tree3bbc11e8ef7f3866da45c06871f18b1fae020bcb /src/util
parent73bd684de42505fe4e6a15803ddf074c57db671c (diff)
downloadkrb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.tar.gz
krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.tar.xz
krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.zip
Windows global stuff:
o removed INTERFACE from non-api functions o add FAR to pointers visible to the world o made the tests for __STDC__ also check for _WINDOWS o creates GSSAPI.DLL & GSSAPI.LIB as per spec. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5354 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
-rw-r--r--src/util/et/ChangeLog5
-rw-r--r--src/util/et/com_err.c6
-rw-r--r--src/util/et/compile_et.c2
-rw-r--r--src/util/et/error_table.h2
-rw-r--r--src/util/et/et_c.awk2
-rw-r--r--src/util/et/internal.h2
6 files changed, 12 insertions, 7 deletions
diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog
index ea43dcd24..666514f92 100644
--- a/src/util/et/ChangeLog
+++ b/src/util/et/ChangeLog
@@ -1,3 +1,8 @@
+Thu Apr 13 16:02:24 1995 Keith Vetter (keithv@fusion.com)
+
+ * com_err.c, compile_et.c, error_ta.h, et_c.awk, internal.h:
+ __STDC__ conditionals also checks for the _WINDOWS define.
+
Wed Apr 5 16:25:35 1995 Keith Vetter (keithv@fusion.com)
* com_err.h: added FAR to pointers in prototypes.
diff --git a/src/util/et/com_err.c b/src/util/et/com_err.c
index 43b315264..7a39966b7 100644
--- a/src/util/et/com_err.c
+++ b/src/util/et/com_err.c
@@ -35,14 +35,14 @@
* should fix up com_err.h so that it's safe to #include here
* directly.
*/
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_WINDOWS)
extern char const * INTERFACE error_message (long);
#else
extern char * INTERFACE error_message ();
#endif
static void
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_WINDOWS)
default_com_err_proc (const char *whoami, long code, const char *fmt, va_list args)
#else
default_com_err_proc (whoami, code, fmt, args)
@@ -77,7 +77,7 @@ static void
#endif
}
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_WINDOWS)
typedef void (*errf) (const char *, long, const char *, va_list);
#else
typedef void (*errf) ();
diff --git a/src/util/et/compile_et.c b/src/util/et/compile_et.c
index a6bf02c6a..921aad240 100644
--- a/src/util/et/compile_et.c
+++ b/src/util/et/compile_et.c
@@ -76,7 +76,7 @@ static const char * const c_src_prolog[] = {
};
static const char * const krc_src_prolog[] = {
- "#ifdef __STDC__\n",
+ "#if defined(__STDC__) || defined(_WINDOWS)\n",
"#define NOARGS void\n",
"#else\n",
"#define NOARGS\n",
diff --git a/src/util/et/error_table.h b/src/util/et/error_table.h
index f1d493fda..53e73d5fc 100644
--- a/src/util/et/error_table.h
+++ b/src/util/et/error_table.h
@@ -39,7 +39,7 @@ extern struct et_list * _et_list;
#define ERRCODE_RANGE 8 /* # of bits to shift table number */
#define BITS_PER_CHAR 6 /* # bits to shift per character in name */
-#if defined(__STDC__) || defined(KRB5_PROVIDE_PROTOTYPES)
+#if defined(__STDC__) || defined(KRB5_PROVIDE_PROTOTYPES) || defined(_WINDOWS)
extern const char *error_table_name (long);
#else
extern const char *error_table_name ();
diff --git a/src/util/et/et_c.awk b/src/util/et/et_c.awk
index 4f53fc3eb..376a8d653 100644
--- a/src/util/et/et_c.awk
+++ b/src/util/et/et_c.awk
@@ -109,7 +109,7 @@ c2n["_"]=63
print " * This file is automatically generated; please do not edit it." > outfile
print " */" > outfile
- print "#ifdef __STDC__" > outfile
+ print "#if defined(__STDC__) || defined(_WINDOWS)" > outfile
print "#define NOARGS void" > outfile
print "#else" > outfile
print "#define NOARGS" > outfile
diff --git a/src/util/et/internal.h b/src/util/et/internal.h
index a101f262f..9cf55c8d4 100644
--- a/src/util/et/internal.h
+++ b/src/util/et/internal.h
@@ -10,6 +10,6 @@ extern char const * const sys_errlist[];
extern const int sys_nerr;
#endif
-#if defined(__STDC__) && !defined(HDR_HAS_PERROR)
+#if defined(__STDC__) && !defined(HDR_HAS_PERROR) && !defined(_WINDOWS)
void perror (const char *);
#endif