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

Issue 1954773002: Resolve macro redefinition warnings when built in Chromium (Closed)

Created:
4 years, 7 months ago by Wei Li
Modified:
4 years, 7 months ago
Reviewers:
Tom Sepez, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Resolve macro redefinition warnings when built in Chromium Chromium defines WIN32_LEAN_AND_MEAN on Windows. Third party library libtiff also defines it. So we undefine it before compiling libtiff code for GYP build. Also, remove _CRT_SECURE_NO_WARNINGS macro since it is redefined in zlib library as well. Our code no longer needs it. After fixing the above, re-enable warning flag 4005 which alerts about "macro redefinition". For GN build, we disable warning 4005 for compiling libtiff code before we can figure out another way to do this. Committed: https://pdfium.googlesource.com/pdfium/+/d29882d3a0567e297756f69b77562ed4892f012a

Patch Set 1 #

Patch Set 2 : fix GN build as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M third_party/BUILD.gn View 1 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/third_party.gyp View 3 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Wei Li
for review, thanks
4 years, 7 months ago (2016-05-05 18:47:15 UTC) #3
dsinclair
Does this only effect GYP or do we need to update GN as well?
4 years, 7 months ago (2016-05-05 18:55:51 UTC) #4
Wei Li
On 2016/05/05 18:55:51, OOO until May 16 (dsinclair) wrote: > Does this only effect GYP ...
4 years, 7 months ago (2016-05-05 19:24:20 UTC) #5
Wei Li
On 2016/05/05 19:24:20, Wei Li wrote: > On 2016/05/05 18:55:51, OOO until May 16 (dsinclair) ...
4 years, 7 months ago (2016-05-05 19:40:05 UTC) #6
Tom Sepez
lgtm
4 years, 7 months ago (2016-05-05 19:59:29 UTC) #8
Tom Sepez
lgtm lgtm
4 years, 7 months ago (2016-05-05 19:59:30 UTC) #9
dsinclair
lgtm
4 years, 7 months ago (2016-05-06 00:01:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1954773002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1954773002/20001
4 years, 7 months ago (2016-05-06 00:01:33 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 00:13:49 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/d29882d3a0567e297756f69b77562ed4892f...

Powered by Google App Engine
This is Rietveld 408576698