svn commit: samba r14479 - in branches/SAMBA_4_0/source/script: .

jelmer at samba.org jelmer at samba.org
Thu Mar 16 14:34:55 GMT 2006


Author: jelmer
Date: 2006-03-16 14:34:55 +0000 (Thu, 16 Mar 2006)
New Revision: 14479

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14479

Log:
Cope with _PUBLIC_ not being defined. Needed for when external projects 
include this header.

Modified:
   branches/SAMBA_4_0/source/script/mkproto.pl


Changeset:
Modified: branches/SAMBA_4_0/source/script/mkproto.pl
===================================================================
--- branches/SAMBA_4_0/source/script/mkproto.pl	2006-03-16 14:12:38 UTC (rev 14478)
+++ branches/SAMBA_4_0/source/script/mkproto.pl	2006-03-16 14:34:55 UTC (rev 14479)
@@ -183,7 +183,11 @@
 
 	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) {



More information about the samba-cvs mailing list