* krb5.hin: special-case ultrix brokenness, reverse sense of
KRB5_PROVIDE_PROTOTYPES (becomes KRB5_NO_PROTOTYPES);
also, NO_NESTED_PROTOTYPES -> KRB5_NO_NESTED_PROTOTYPES
* Makefile.in: don't install NO_NESTED_PROTOTYPES, HAS_VOID_TYPE,
and KRB5_PROVIDE_PROTOTYPES symbols into krb5.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6151
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Jun 22 16:03:07 1995 Tom Yu (tlyu@dragons-lair)
+
+ * syslog.h: reverse sense of KRB5_PROVIDE_PROTOTYPES
+ * krb5.hin: special-case ultrix brokenness, reverse sense of
+ KRB5_PROVIDE_PROTOTYPES (becomes KRB5_NO_PROTOTYPES);
+ also, NO_NESTED_PROTOTYPES -> KRB5_NO_NESTED_PROTOTYPES
+ * Makefile.in: don't install NO_NESTED_PROTOTYPES, HAS_VOID_TYPE,
+ and KRB5_PROVIDE_PROTOTYPES symbols into krb5.h
Thu Jun 22 11:51:10 EDT 1995 Paul Park (pjpark@mit.edu)
* k5-int.h - Add pointer in krb5_context for database context.
echo "/* This is the prologue to krb5.h */" > krb5-pro.h
echo "/* Unfortunately some of these defines are compiler dependent */" >> krb5-pro.h
grep SIZEOF krb5/autoconf.h >> krb5-pro.h
- grep PROTOTYPES krb5/autoconf.h >> krb5-pro.h
- grep HAS_VOID_TYPE krb5/autoconf.h >> krb5-pro.h
grep HAVE_STDARG_H krb5/autoconf.h >> krb5-pro.h
echo "/* End of prologue section */" >> krb5-pro.h
typedef char krb5_const FAR * krb5_const_pointer;
#endif
-#if defined(__STDC__) || defined(KRB5_PROVIDE_PROTOTYPES) || defined(_WINDOWS)
+#if (defined(__STDC__) || defined(_WINDOWS)) && !defined(KRB5_NO_PROTOTYPES)
#define KRB5_PROTOTYPE(x) x
#if defined(__STDC__) || defined(HAVE_STDARG_H) || defined(_WINDOWS)
#define KRB5_STDARG_P(x) x
#define KRB5_STDARG_P(x) ()
#endif /* STDC or PROTOTYPES */
-#ifdef NO_NESTED_PROTOTYPES
+/*
+ * This gross compiler dependency is in here because the stock Ultrix
+ * compiler defines __STDC__ but doesn't deal with nested prototypes
+ * properly. The reason this isn't tested for is so that this header
+ * is actually useful when installed.
+ */
+#if defined(KRB5_NO_NESTED_PROTOTYPES) || (defined(__ultrix) && !defined(__GNUC__))
#define KRB5_NPROTOTYPE(x) ()
#else
#define KRB5_NPROTOTYPE(x) KRB5_PROTOTYPE(x)
#define LOG_NOWAIT 0x10 /* if forking to log on console, don't wait() */
#ifndef KERNEL
-#if defined(__STDC__) || defined(KRB5_PROVIDE_PROTOTYPES) || defined(_WINDOWS)
+#if (defined(__STDC__) || defined(_WINDOWS)) && !defined(KRB5_NO_PROTOTYPES)
extern void syslog (int , const char *, ... );
#ifdef va_start
/* XXX depending on #define of va_start in <stdarg.h> */