From: John Kohl Date: Thu, 8 Feb 1990 10:16:49 +0000 (+0000) Subject: add DECLARG, OLDDECLARG to do proper type conversion &c for ANSI X-Git-Tag: krb5-1.0-alpha2~1063 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e887d777ba6e6b503786c69e2379790949d9963;p=krb5.git add DECLARG, OLDDECLARG to do proper type conversion &c for ANSI and old C git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@321 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/base-defs.h b/src/include/krb5/base-defs.h index 7f11355b8..fe01f2310 100644 --- a/src/include/krb5/base-defs.h +++ b/src/include/krb5/base-defs.h @@ -56,12 +56,16 @@ typedef krb5_data ** krb5_principal; /* array of strings */ #ifdef __STDC__ typedef void * krb5_pointer; #define PROTOTYPE(x) x +#define DECLARG(type, val) type val +#define OLDDECLARG(type, val) #else /* make const & volatile available without effect */ #define const #define volatile typedef char * krb5_pointer; #define PROTOTYPE(x) () +#define DECLARG(type, val) val +#define OLDDECLARG(type, val) type val; #endif /* __STDC__ */ #endif /* __KRB5_BASE_DEFS__ */