Closed Bug 1322831 Opened 8 years ago Closed 8 years ago

Stopwatch.h won't compile with WINVER=0x0601

Categories

(Core :: JavaScript Engine: JIT, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: emk, Unassigned)

References

Details

Attachments

(1 file)

      No description provided.
Attachment #8817808 - Flags: review?(jdemooij)
Attachment #8817808 - Attachment description: win7_stopwatch → Remove dependence on Windows types from Stopwatch.h
Comment on attachment 8817808 [details] [diff] [review]
Remove dependence on Windows types from Stopwatch.h

Review of attachment 8817808 [details] [diff] [review]:
-----------------------------------------------------------------

Hm, okay. #including a Windows API file in our header files is probably undesirable and even if MS ever changes the size of the fields in the PROCESSOR_NUMBER struct, this patch doesn't change much for us (the current code also truncates, thanks to C++).
Attachment #8817808 - Flags: review?(jdemooij) → review+
(In reply to Jan de Mooij [:jandem] from comment #1)
> (the current code also truncates, thanks to C++).

Sorry this sounds confusing. I meant: the current code is fine, but it *would* truncate in the unlikely event the PROCESSOR_NUMBER struct is modified.
Try run just in case (it is very unlikely to be broken because WINVER is still 0x0501):
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cd1fa44a81dcc2011d399bb9973283309396bf84
Pushed by VYV03354@nifty.ne.jp:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a01f2d3fd5a2
Remove dependence on Windows types from Stopwatch.h. r=jandem
https://hg.mozilla.org/mozilla-central/rev/a01f2d3fd5a2
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Blocks: 1325299
No longer blocks: xp-eol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: