On 07.02.2017 17:44, Alexandre Julliard wrote:
Nikolay Sivov nsivov@codeweavers.com writes:
@@ -29,9 +29,17 @@ cpp_quote("#endif")
cpp_quote("#ifndef _GDIPLUSHEADERS_H") typedef BYTE EncoderParameters; +cpp_quote("#endif")
+/* Wine does not define GDI+ class wrappers */ +cpp_quote("#if defined(__WINESRC__) || !defined(_GDIPLUSHEADERS_H)") typedef BYTE Image; cpp_quote("#endif")
We don't have C++ code in the Wine source, so I don't see why you'd need that.
We do have some class definitions in gdiplus headers, like in gdiplusimaging.h. My motivation was to have a header compatible with SDK one in terms of these include guards. I understand that it won't be possible to use Image class in its C++ form from shell32, luckily I had no need for that to fix the bug.
Do you mean it's enough to typedef Image to BYTE uncoditionaly?