summaryrefslogtreecommitdiff
path: root/source4/script/mkproto.pl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script/mkproto.pl')
-rwxr-xr-xsource4/script/mkproto.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl
index e79bcfd9b6..01066885e1 100755
--- a/source4/script/mkproto.pl
+++ b/source4/script/mkproto.pl
@@ -183,7 +183,11 @@ if ($public_file ne $private_file) {
print $public_fd "/* this file contains prototypes for functions that " .
"are part of \n * the public API of this subsystem or library. */\n\n";
+
}
+
+print $public_fd "#ifndef _PUBLIC_\n#define _PUBLIC_\n#endif\n\n";
+
process_file($public_fd, $private_fd, $_) foreach (@ARGV);
print_footer($public_fd, $public_define);
if ($public_file ne $private_file) {