Commit fbe7ad18 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by The Qt Project
Browse files

Fix compile error caused by min/max defines.


qtbase d0804ff2dd3d289a0f0c58aa30c4334e66ea9be0 introduces a check
for min/max which causes a compile error.

Change-Id: I6a79e75423baa3f577eb26697e2766e58040b7d9
Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
parent 7e1803d3
Branches
Tags
No related merge requests found
Showing with 4 additions and 4 deletions
...@@ -39,10 +39,10 @@ ...@@ -39,10 +39,10 @@
#if OS(WINDOWS) #if OS(WINDOWS)
// If we don't define these, they get defined in windef.h. // windef.h defines min and max unless NOMINMAX is defined.
// We want to use std::min and std::max #ifndef NOMINMAX
#define max max # define NOMINMAX
#define min min #endif
#if !COMPILER(MSVC7) && !OS(WINCE) #if !COMPILER(MSVC7) && !OS(WINCE)
// We need to define this before the first #include of stdlib.h or it won't contain rand_s. // We need to define this before the first #include of stdlib.h or it won't contain rand_s.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment