Closed GoogleCodeExporter closed 9 years ago
Taking a look at this since it prevents building the dynamic CLD2 on Windows.
Original comment by andrewha...@google.com
on 1 Oct 2014 at 2:36
This looks like it could be:
http://stackoverflow.com/questions/2789481/problem-calling-stdmax
Basically it looks like windows.h defines "min" and "max" macros, which need to
be guarded against in this code.
Original comment by andrewha...@google.com
on 1 Oct 2014 at 2:38
Original comment by andrewha...@google.com
on 1 Oct 2014 at 2:40
Original comment by andrewha...@google.com
on 1 Oct 2014 at 2:40
Patch ready; compile_and_test_all.sh reports success for all dynamic and static
unit tests, so I'm going to go ahead and commit.
Original comment by andrewha...@google.com
on 1 Oct 2014 at 2:48
Actually, the patch I uploaded - though it compiles and runs on Linux - won't
fix the windows problem. What's current there is the use of std::max without
the appropriate include on Windows; but the include on Windows will define
macros that will break with the current syntax.
Alternative solution to avoid sucking in #ifdefs for win32: do it with the
ternary operator. This is test code, so this should not be a big deal.
Original comment by andrewha...@google.com
on 1 Oct 2014 at 3:03
Committed as r169 and will roll into Chromium to confirm the fix.
Original comment by andrewha...@google.com
on 1 Oct 2014 at 3:06
Confirmed, this is no longer an issue in the Chromium windows bots.
Original comment by andrewha...@google.com
on 24 Oct 2014 at 6:57
Original issue reported on code.google.com by
andrewha...@chromium.org
on 1 Oct 2014 at 2:36