blender/intern/cycles/util/windows.h
Sebastian Herholz 09d2b8ae3b Cleanup: Adding global NOMINMAX compiler define for Windows builds
This PR adds the NOMINMAX define globally for the compiler when building on Windows.
This allows us to remove several NOMINMAX definitions inside the Blender code and
CMake files of various Blender submodules.

Pull Request: https://projects.blender.org/blender/blender/pulls/154255
2026-02-13 20:29:23 +01:00

24 lines
403 B
C

/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
*
* SPDX-License-Identifier: Apache-2.0 */
#pragma once
#ifdef _WIN32
# ifndef NOGDI
# define NOGDI
# endif
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# include <windows.h>
#endif /* _WIN32 */
CCL_NAMESPACE_BEGIN
bool system_windows_version_at_least(const int major, const int build);
CCL_NAMESPACE_END