From 43c7536883bf6313c47c4edb57cbbc66969b6ca7 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 16 Mar 2006 14:34:55 +0000 Subject: r14479: Cope with _PUBLIC_ not being defined. Needed for when external projects include this header. (This used to be commit 9bfc3c2537eb7183ba722c8c83248521c2126109) --- source4/script/mkproto.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/script/mkproto.pl') 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) { -- cgit