Closed GoogleCodeExporter closed 9 years ago
It appears to be non-trivial to use #undef to work around this because usage of
gdiplustypes and safe_conversions_impl are mixed into the same translation
units.
Original comment by scottmg@chromium.org
on 1 Aug 2014 at 12:01
palmer, can that file not use min/max for now? (This is blocking rolling pdfium)
Original comment by thakis@chromium.org
on 1 Aug 2014 at 12:04
I don't trust myself to hack in a "fix" for this. Tom or Justin?
Original comment by pal...@chromium.org
on 1 Aug 2014 at 12:33
Yet another reason to get rid of that damn GDI dependency! But in the interim,
it looks like the sub includes are all wrapped inside the GDIplus namespace.
So, declaring the following prior to including gdiplus.h would probably work:
namespace Gdiplus
{
using std::min;
using std::max;
}
Lets see if I can check out the build and try it.
Original comment by jschuh@chromium.org
on 1 Aug 2014 at 4:23
[deleted comment]
Okay, the simple attached patch works. I'd clean it up myself and land it, but
I don't know how that works in this repo.
Original comment by jschuh@chromium.org
on 1 Aug 2014 at 5:01
Attachments:
Thanks Justin, https://codereview.chromium.org/438843003
Original comment by scottmg@chromium.org
on 1 Aug 2014 at 5:11
(I can't mark this fixed, but it is.)
Original comment by scottmg@chromium.org
on 1 Aug 2014 at 7:40
Original comment by thakis@chromium.org
on 1 Aug 2014 at 11:25
Original issue reported on code.google.com by
scottmg@chromium.org
on 31 Jul 2014 at 11:55