From: Ezra Peisach Date: Tue, 23 Jul 1996 01:40:23 +0000 (+0000) Subject: If __STDC__ is not defined, generate proper prototypes.. X-Git-Tag: krb5-1.0-beta7~305 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b10631fdce73153be3fb25a501ed48ff892c467d;p=krb5.git 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 --- 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));