From b10631fdce73153be3fb25a501ed48ff892c467d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 23 Jul 1996 01:40:23 +0000 Subject: [PATCH] If __STDC__ is not defined, generate proper prototypes.. The macro expansion was generating "int DynCopy ; " instead of "int DynCopy ()" git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8777 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/dyn/ChangeLog | 5 +++++ src/util/dyn/dyn.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util/dyn/ChangeLog b/src/util/dyn/ChangeLog index 9fac92665..2505d5b39 100644 --- a/src/util/dyn/ChangeLog +++ b/src/util/dyn/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 22 21:37:52 1996 Ezra Peisach + + * dyn.h: If __STDC__ is not defined, generate prototypes implying + functions and not variables. + Mon Jul 22 04:20:48 1996 Marc Horowitz * dyn_insert.c (DynInsert): what used to be #ifdef POSIX, should diff --git a/src/util/dyn/dyn.h b/src/util/dyn/dyn.h index 5ca59ba86..401565199 100644 --- a/src/util/dyn/dyn.h +++ b/src/util/dyn/dyn.h @@ -40,7 +40,7 @@ typedef struct _DynObject { #ifdef __STDC__ #define P(args) args #else -#define P(args) +#define P(args) () #endif /* __STDC__ */ DynObject DynCreate P((int el_size, int inc)), DynCopy P((DynObject obj)); -- 2.26.2