[PATCH] Make pidl more C++ friendly for enum forward declarations

Sam Liddicott sam at liddicott.com
Tue Nov 25 14:37:20 GMT 2008

Enclose enum forward declarations in
 #ifndef __cplusplus

So that C++ projects can make better use of pidl generated header

This does NOT solve the problem of the forward declaration actually
being NEEDED as a forward declaration for such a header file used
by a C++ project.

pidl really ought to insert the enum definition where the forward
declaration is.

Signed-off-by: Sam Liddicott <sam at liddicott.com>
 pidl/lib/Parse/Pidl/Samba4/Header.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9d114f11e2033dcc1587168bfcbbe31888abf517.diff
Type: text/x-patch
Size: 732 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20081125/27abe60a/9d114f11e2033dcc1587168bfcbbe31888abf517.bin

More information about the samba-technical mailing list