diff options
-rwxr-xr-x | source4/script/mkproto.pl | 4 |
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) { |