/* SPDX-License-Identifier: MIT Copyright © 2023 Amebis */ #pragma once // Windows.h #defines min and max, which collides with std::min and std::max. // Not only the collision problem, #defining min and max is plain wrong as it // causes multiple evaluations of parameter expressions. #ifndef NOMINMAX #define NOMINMAX #endif #include // In case somebody #included before us without #defining NOMINMAX #ifdef min #undef min #endif #ifdef max #undef max #endif