DescriptionGet VS 2015 to use const int definitions
VC++ up to VS 2015 RTM does not require explicit storage allocation for
static const integers declared in classes. VS 2015 Update 1 requires
these storage definitions in some cases. It's unclear exactly what
cases - simple tests work with and without the explicit storage
allocation.
Many previous versions of VC++ have theoretically *allowed* a
definition to supply storage, but tests on VC++ 2013 show that this
doesn't actually work correctly - it leads to duplicate definition
errors. So, the change is scoped to VS 2015 only.
This changed was landed in the upstream protobuf repo:
https://github.com/google/protobuf/commit/a74e912a8be1274
With this change the chrome target builds with the latest VS 2015.
R=scottmg@chromium.org, pdr@chromium.org
BUG=440500
Committed: https://crrev.com/0693ed787f6ffd2b248ef8cf2c0dc050a4e9d8b2
Cr-Commit-Position: refs/heads/master@{#357013}
Patch Set 1 #Patch Set 2 : Change the protobuf library to support VC++ 2015 Update 1 #Patch Set 3 : Update version check to allow in VC++ 2013 #Patch Set 4 : Only apply fix to VS 2015 - VS 2013 can't handle it #Patch Set 5 : Updating two generated files, per protobuf tests #Patch Set 6 : Comment fix #Patch Set 7 : Update README.chromium #Messages
Total messages: 20 (7 generated)
|