mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
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
24 lines
403 B
C
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
|