Closed
Bug 1350998
Opened 8 years ago
Closed 8 years ago
windows.h macros are interfering with spidermonkey code
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: sfink, Assigned: sfink)
Details
Attachments
(1 file)
8.24 KB,
patch
|
sstangl
:
review+
|
Details | Diff | Splinter Review |
We have an include file named jswin.h that should normally used in place of windows.h.
Assignee | ||
Comment 1•8 years ago
|
||
I haven't tried pushing this to try yet, and I don't know if vtune stuff needs any of those macros.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=67115abfb373292d59ab821334c2864b21c6c098
Attachment #8851693 -
Flags: review?(sstangl)
Comment 2•8 years ago
|
||
Comment on attachment 8851693 [details] [diff] [review]
always include windows.h via jswin.h to undo macro damage
Review of attachment 8851693 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/vm/Runtime.cpp
@@ -15,5 @@
> #include <mach/mach.h>
> #elif defined(XP_UNIX)
> #include <sys/resource.h>
> -#elif defined(XP_WIN)
> -#include <windows.h>
Doesn't this still need a "jswin.h" include? It looks like it was deleted.
Attachment #8851693 -
Flags: review?(sstangl) → review+
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5e934196e757
always include windows.h via jswin.h to undo macro damage, r=sstangl
Comment 4•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Assignee | ||
Comment 5•8 years ago
|
||
Sorry, didn't reply to this.
(In reply to Sean Stangl [:sstangl] from comment #2)
> ::: js/src/vm/Runtime.cpp
> @@ -15,5 @@
> > #include <mach/mach.h>
> > #elif defined(XP_UNIX)
> > #include <sys/resource.h>
> > -#elif defined(XP_WIN)
> > -#include <windows.h>
>
> Doesn't this still need a "jswin.h" include? It looks like it was deleted.
Several lines later, it includes jswin.h. So it was double-including, but you can't see it in the patch because of our enforced include ordering rules.
You need to log in
before you can comment on or make changes to this bug.
Description
•