mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
define NOMINMAX in the CMakefile to fix std::min and std::max on MSVC (#1308)
This commit is contained in:
@@ -1707,7 +1707,7 @@ Version get_max_OpenCL_C_for_context(cl_context context)
|
||||
else
|
||||
{
|
||||
current_version =
|
||||
(std::min)(device_version, current_version);
|
||||
std::min(device_version, current_version);
|
||||
}
|
||||
});
|
||||
return current_version;
|
||||
|
||||
@@ -333,9 +333,6 @@ std::string exe_dir()
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
#if defined(max)
|
||||
#undef max
|
||||
#endif
|
||||
|
||||
#include <cctype>
|
||||
#include <algorithm>
|
||||
|
||||
Reference in New Issue
Block a user