On Tue, Feb 1, 2011 at 10:28 AM, Paul Chitescu <[email protected]> wrote: > On Tuesday 01 February 2011 09:49:46 am Iain Arnell wrote: >> To fix inclusion of gdiplus.h under C++, this patch: >> * adds missing class declaration for GpPen >> * adds missing class declaration for CharacterRange >> * fixes PenAlignment/GpPenAlignment declaration >> * avoids redeclaration of PixelFormat [snip the patch] > > Wouldn't be better to wrap the offending C with: > > #ifdef __cplusplus > extern "C" { > #endif > > ... > > #ifdef __cplusplus > } > #endif >
It's not a matter of offending C code; just that the C++ in these headers has bitrotted over the years as the code has changed. -- Iain.
