From:  Steve Fink <sfink@mozilla.com>
Date:  30 Mar 2017 21:57:48 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.tech.js-engine.internals
Subject:  

PSA: If you need windows.h, #include "jswin.h"

NNTP-Posting-Host:  63.245.214.181

I just went through and found a bunch of places where we were including 
windows.h directly. Which defines macros like min, max, GetProp, and 
CONST. I didn't think this really mattered much, but coincidentally I 
shortly thereafter encountered code that was doing contortions to work 
around it, like calling (std::min)(a, b) -- apparently, the initial 
parentheses are needed to avoid getting the macro version?

Anyway, it's weird and we shouldn't have to worry about making a local 
variable named max, so use jswin.h or you will face the humor of the 
trickster god of unified builds.