Closed Bug 1350998 Opened 8 years ago Closed 8 years ago

windows.h macros are interfering with spidermonkey code

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(1 file)

We have an include file named jswin.h that should normally used in place of windows.h.
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 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
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
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.

Attachment

General

Created:
Updated:
Size: