- 
    Bug 
- 
    Resolution: Done
- 
    P3: Somewhat important 
- 
    5.3.1
- 
    None
- 
    Microsoft Visual Studio 2013
- 
        def272750cdb7810bca4f4815ed1183ba2bd6df9
QDateTime::nullJd is defined as follows
static inline qint64 nullJd() { return std::numeric_limits<qint64>::min(); }
With Microsoft VC++ this causes a compiler warning unless compiled with /DNOMINMAX, this isnt always an option when working with legacy code. Therefor I would suggest that QDateTime::nullJd is slightly rewritten:
static inline qint64 nullJd() { return (std::numeric_limits<qint64>::min)(); }
- replaces
- 
                    QTBUG-31469 Failed to build application that uses QDateTime class with Visual C++ 11.0 -           
- Closed
 
-         
| For Gerrit Dashboard: QTBUG-42767 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 100307,3 | Put parentheses around "min" to prevent expansion as macro | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |