Include <stdarg.h>

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3266 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-29 00:54:40 +00:00
parent d86d8e8162
commit a374a55862

View File

@@ -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 <stdarg.h>
#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";