Skip to content

Commit 0e2902c

Browse files
committed
Add an alias for min and max for macOS.
Windows doesn't support std::min and std::max for some reason in their STL implementation - so just alias it on macOS.
1 parent 2afb6b0 commit 0e2902c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Concurrency/NodeScheduler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
#include <algorithm>
1515
#include <format>
1616

17+
#ifdef EntropyDarwin
18+
using std::min;
19+
using std::max;
20+
#endif
21+
1722
namespace EntropyEngine {
1823
namespace Core {
1924
namespace Concurrency {

0 commit comments

Comments
 (0)