Skip to content

Commit

Permalink
Add <algorithm> include to qtmochelpers.h
Browse files Browse the repository at this point in the history
std::min is defined in header <algorithm>. It seems that the
latest macOS/iOS clang fails without it.

Change-Id: I3d1cfad27244580ea975db870d993cce394b4b2f
Reviewed-by: Giuseppe D'Angelo <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
kkoehne committed Oct 3, 2022
1 parent e418a9b commit f1448b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/corelib/kernel/qtmochelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <QtCore/qglobal.h>

#include <algorithm>

#if 0
#pragma qt_no_master_include
#endif
Expand Down

0 comments on commit f1448b2

Please sign in to comment.