[omniORB] omniidl and C++ include guard naming

Duncan Grisby duncan at grisby.org
Thu Apr 12 16:33:46 BST 2007


On Monday 9 April, Austin Bingham wrote:

> Is there any way to control the names that omniidl uses when generating 
> include guards in C++ headers? If I'm dealing with two sets of IDL, both 
> of which have a (for instance) Util.idl, the generated header files will 
> both use the same macro definition for the include guard. Is there any way 
> I can tell the C++ backend to use some sort of pre/suffix to differentiate 
> these names? The problem, of course, is that these macros collide if some 
> translation unit includes both of these generated headers. Thanks.

No, I'm afraid not. Can you just rename your IDL files to avoid
confusion?

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list