Closed
Bug 687389
Opened 13 years ago
Closed 13 years ago
MSVC 2010 warning C4005: '_WIN32_WINNT' : macro redefinition for various files under accessible/public/*
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: emorley, Assigned: emorley)
References
(Blocks 1 open bug)
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
1.39 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
MSVC 2010 using http://hg.mozilla.org/integration/mozilla-inbound/rev/f827e9173fea { ISimpleDOMDocument_i.c c:\mozilla\repos\obj-inbound\accessible\public\msaa\../../../dist/include/mozilla-config.h(91) : warning C4005: '_WIN32_WINNT' : macro redefinition command-line arguments : see previous definition of '_WIN32_WINNT' ISimpleDOMNode_i.c c:\mozilla\repos\obj-inbound\accessible\public\msaa\../../../dist/include/mozilla-config.h(91) : warning C4005: '_WIN32_WINNT' : macro redefinition command-line arguments : see previous definition of '_WIN32_WINNT' ...plus more under accessible/public/msaa/ } { Accessible2_p.c c:\mozilla\repos\obj-inbound\accessible\public\ia2\../../../dist/include/mozilla-config.h(91) : warning C4005: '_WIN32_WINNT' : macro redefinition command-line arguments : see previous definition of '_WIN32_WINNT' AccessibleAction_p.c c:\mozilla\repos\obj-inbound\accessible\public\ia2\../../../dist/include/mozilla-config.h(91) : warning C4005: '_WIN32_WINNT' : macro redefinition command-line arguments : see previous definition of '_WIN32_WINNT' ...plus ~20 more under accessible/public/ia2/ } Caused by the |DEFINES += -DREGISTER_PROXY_DLL -D_WIN32_WINNT=0x400| lines here: http://mxr.mozilla.org/mozilla-central/search?string=_WIN32_WINNT&find=accessible%2Fpublic%2F
Flags: in-testsuite-
Assignee | ||
Comment 1•13 years ago
|
||
Removes the _WIN32_WINNT defines in: accessible/public/msaa/Makefile.in and accessible/public/ia2/Makefile.in , which existed at least as far back as CVS days, but seem redundant given the defines that end up in mozilla-config.h.
Attachment #560834 -
Flags: review?(khuey)
Comment on attachment 560834 [details] [diff] [review] Patch v1 I'd prefer that an a11y peer review this.
Attachment #560834 -
Flags: review?(khuey) → review?(surkov.alexander)
Comment 3•13 years ago
|
||
This code is 8 years old (bug 199518) and I didn't find a reason why it was introduced. This define isn't used in sources explicitly but I'm not sure if it can affect on dll creation or registration. What possible value are available and how they are used, do Windows header files rely on it, any hint?
Assignee | ||
Comment 4•13 years ago
|
||
khuey or ted might be able to answer that, adding to CC :-)
http://msdn.microsoft.com/en-us/library/aa383745%28v=vs.85%29.aspx#setting_winver_or__win32_winnt It controls what definitions are made available in the Windows headers.
Comment 6•13 years ago
|
||
Comment on attachment 560834 [details] [diff] [review] Patch v1 r=me
Attachment #560834 -
Flags: review?(surkov.alexander) → review+
Assignee | ||
Comment 7•13 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&usebuildbot=1&rev=39b4ffb18fd5 https://hg.mozilla.org/integration/mozilla-inbound/rev/0c47234a4021
Target Milestone: --- → mozilla9
Assignee | ||
Comment 8•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0c47234a4021
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•