Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Issue 1770093002: Avoid illegal definition of snprintf in VS 2015 (Closed)

Created:
4 years, 9 months ago by brucedawson
Modified:
4 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid illegal definition of snprintf in VS 2015 VS 2015 supplies an implementation of snprintf which makes definining it to _snprintf illegal - previously it was just a really bad idea. This reinstates the compiler version check so that libxml will compile in Chromium. README.chromium was also updated to make it explicit that these checks need to be added (for now) when config.h is copied. A corresponding change will need to be made upstream. BUG=440500, 591920 Committed: https://crrev.com/f7bd300e8c52d6ebb7575a28d4cd9d3bdccaf439 Cr-Commit-Position: refs/heads/master@{#379755}

Patch Set 1 #

Patch Set 2 : Fixed typo #

Total comments: 2

Patch Set 3 : Fixed README.chromium #

Patch Set 4 : Tweaked #ifdefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M third_party/libxml/README.chromium View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/libxml/win32/config.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
brucedawson
The recent roll of libxml broke VS 2015 builds of Chromium. This fixes that and ...
4 years, 9 months ago (2016-03-07 19:33:10 UTC) #2
Peter Kasting
What's worrisome about this change is that we went from using what amounted to the ...
4 years, 9 months ago (2016-03-07 19:51:55 UTC) #3
brucedawson
True that. I was focused on making the minimal change from the current point, but ...
4 years, 9 months ago (2016-03-07 19:54:31 UTC) #4
scottmg
https://codereview.chromium.org/1770093002/diff/20001/third_party/libxslt/README.chromium File third_party/libxslt/README.chromium (right): https://codereview.chromium.org/1770093002/diff/20001/third_party/libxslt/README.chromium#newcode37 third_party/libxslt/README.chromium:37: Patch win32/config.h to add "#if _MSC_VER < 1900 // ...
4 years, 9 months ago (2016-03-07 20:32:36 UTC) #6
scottmg
On 2016/03/07 19:54:31, brucedawson wrote: > True that. I was focused on making the minimal ...
4 years, 9 months ago (2016-03-07 20:33:38 UTC) #7
brucedawson
Okay, should be all good now. I followed the instructions in README.chromium which means I ...
4 years, 9 months ago (2016-03-07 21:17:07 UTC) #8
Peter Kasting
On 2016/03/07 21:17:07, brucedawson wrote: > I also improved the text in README.chromium, and I'll ...
4 years, 9 months ago (2016-03-07 21:21:40 UTC) #10
brucedawson
> The real issue here, to me, is that upstream even has both those files ...
4 years, 9 months ago (2016-03-07 21:22:28 UTC) #11
Peter Kasting
On 2016/03/07 21:22:28, brucedawson wrote: > > The real issue here, to me, is that ...
4 years, 9 months ago (2016-03-07 21:26:06 UTC) #12
Peter Kasting
On 2016/03/07 21:22:28, brucedawson wrote: > > The real issue here, to me, is that ...
4 years, 9 months ago (2016-03-07 21:28:54 UTC) #13
brucedawson
Got it. I was looking for config.h instead of *config.h so I didn't see the ...
4 years, 9 months ago (2016-03-07 21:48:04 UTC) #14
brucedawson
> I've asked the XML mailing list for advice. I'd like to land some variant ...
4 years, 9 months ago (2016-03-07 23:21:04 UTC) #15
Peter Kasting
I think you should land this. My email to upstream has more info, but in ...
4 years, 9 months ago (2016-03-08 00:04:26 UTC) #16
scottmg
lgtm
4 years, 9 months ago (2016-03-08 00:21:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1770093002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1770093002/60001
4 years, 9 months ago (2016-03-08 01:03:12 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/34703)
4 years, 9 months ago (2016-03-08 03:03:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1770093002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1770093002/60001
4 years, 9 months ago (2016-03-08 03:54:55 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-08 05:13:49 UTC) #25
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 05:15:20 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f7bd300e8c52d6ebb7575a28d4cd9d3bdccaf439
Cr-Commit-Position: refs/heads/master@{#379755}

Powered by Google App Engine
This is Rietveld 408576698