gdiplus: C++ fixes for headers

Iain Arnell iarnell at gmail.com
Tue Feb 1 07:00:36 CST 2011


On Tue, Feb 1, 2011 at 10:28 AM, Paul Chitescu <paulc at voip.null.ro> 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.



More information about the wine-devel mailing list