From ddc204c8947888ff1da137e3db073fadb2004edf Mon Sep 17 00:00:00 2001 From: Paul Park Date: Tue, 27 Jun 1995 20:34:02 +0000 Subject: Reinstate KRB5_PROVIDE_PROTOTYPES git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6167 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 6 ++++++ src/include/krb5.hin | 2 +- src/include/krb5/configure.in | 2 ++ src/include/krb5/k5-config.h | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 6fd59a2e0..3d51a9e17 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ + +Tue Jun 27 16:14:38 EDT 1995 Paul Park (pjpark@mit.edu) + * krb5.hin - Reinstate KRB5_PROVIDE_PROTOTYPES. This is needed for + compilers which recognize prototypes but don't set __STDC__ + or _WINDOWS. + Thu Jun 22 16:03:07 1995 Tom Yu (tlyu@dragons-lair) * syslog.h: reverse sense of KRB5_PROVIDE_PROTOTYPES diff --git a/src/include/krb5.hin b/src/include/krb5.hin index 542efe12c..6bd36e366 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -167,7 +167,7 @@ typedef char FAR * krb5_pointer; typedef char krb5_const FAR * krb5_const_pointer; #endif -#if (defined(__STDC__) || defined(_WINDOWS)) && !defined(KRB5_NO_PROTOTYPES) +#if (defined(__STDC__) || defined(_WINDOWS) || defined(KRB5_PROVIDE_PROTOTYPES)) && !defined(KRB5_NO_PROTOTYPES) #define KRB5_PROTOTYPE(x) x #if defined(__STDC__) || defined(HAVE_STDARG_H) || defined(_WINDOWS) #define KRB5_STDARG_P(x) x diff --git a/src/include/krb5/configure.in b/src/include/krb5/configure.in index 1ecc31200..da0a29157 100644 --- a/src/include/krb5/configure.in +++ b/src/include/krb5/configure.in @@ -62,6 +62,8 @@ krb5_cv_has_prototypes=yes, krb5_cv_has_prototypes=no)]) AC_MSG_RESULT($krb5_cv_has_prototypes) if test $krb5_cv_has_prototypes = no; then AC_DEFINE(KRB5_NO_PROTOTYPES) +else +AC_DEFINE(KRB5_PROVIDE_PROTOTYPES) fi dnl *never* set NARROW_PROTOTYPES diff --git a/src/include/krb5/k5-config.h b/src/include/krb5/k5-config.h index 7c9b66780..403979622 100644 --- a/src/include/krb5/k5-config.h +++ b/src/include/krb5/k5-config.h @@ -61,6 +61,7 @@ #define HAS_ANSI_VOLATILE #define HAS_VOID_TYPE +#define KRB5_PROVIDE_PROTOTYPES #define HAVE_STDARG_H #define HAVE_SYS_TYPES_H -- cgit