- fixed compilation on non-Windows.

In this header we must explicitly use the std:: namespace for min/max.
This commit is contained in:
Christoph Oelckers 2021-10-30 11:38:20 +02:00
parent 77d74a11d1
commit ce99cda019

View file

@ -66,7 +66,7 @@ static inline char *strlwr(char *str)
}
inline int I_GetNumaNodeCount() { return 1; }
inline int I_GetNumaNodeThreadCount(int numaNode) { return max<int>(std::thread::hardware_concurrency(), 1); }
inline int I_GetNumaNodeThreadCount(int numaNode) { return std::max<int>(std::thread::hardware_concurrency(), 1); }
inline void I_SetThreadNumaNode(std::thread &thread, int numaNode) { }
#endif