From a374a55862f9b437217abc42db0bf0e4a4566927 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Fri, 29 Aug 1997 00:54:40 +0000 Subject: [PATCH] Include git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3266 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/make-proto.pl | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/cf/make-proto.pl b/cf/make-proto.pl index 686955717..3511e6285 100644 --- a/cf/make-proto.pl +++ b/cf/make-proto.pl @@ -64,12 +64,26 @@ while(<>) { if($brace == 0) { $line = $line . " " . $_; } -}; +} print "/* This is a generated file */\n\n"; print "#ifndef __krb5_protos_h__\n"; print "#define __krb5_protos_h__\n\n"; +print ' +#ifdef __STDC__ +#include +#ifndef __P +#define __P(x) x +#endif +#else +#ifndef __P +#define __P(x) +#endif +#endif + +'; + foreach(sort keys %funcs){ if(/^(main)$/) { next } print $funcs{$_}, "\n\n";