diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-16 14:34:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:57:31 -0500 |
commit | 43c7536883bf6313c47c4edb57cbbc66969b6ca7 (patch) | |
tree | 1ba95022e7305c014f64407386f631e0693e39f0 /source4/script | |
parent | 86314203e68062f8b35562ccd77068f76c9f025b (diff) | |
download | samba-43c7536883bf6313c47c4edb57cbbc66969b6ca7.tar.gz samba-43c7536883bf6313c47c4edb57cbbc66969b6ca7.tar.bz2 samba-43c7536883bf6313c47c4edb57cbbc66969b6ca7.zip |
r14479: Cope with _PUBLIC_ not being defined. Needed for when external projects
include this header.
(This used to be commit 9bfc3c2537eb7183ba722c8c83248521c2126109)
Diffstat (limited to 'source4/script')
-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) { |