Make pidl more C++ friendly for enum forward declarations
commit5df0bef4d3124e5c08fc8f29abd75912ae622d3d
authorSam Liddicott <sam@liddicott.com>
Wed, 26 Nov 2008 15:24:22 +0000 (26 15:24 +0000)
committerSam Liddicott <sam@liddicott.com>
Wed, 10 Dec 2008 10:12:34 +0000 (10 10:12 +0000)
treedeaf50e62aed3e30b949a04aaf55404b618f3268
parente4ecb601576837403f07dd72a7609b5827a19c52
Make pidl more C++ friendly for enum forward declarations

Enclose enum forward declarations in
 #ifndef __cplusplus
 ...
 #endf

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

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.
pidl/lib/Parse/Pidl/Samba4/Header.pm