2 //===----------------------------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
12 #if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
13 #if defined(_LIBCPP_WARNING)
14 _LIBCPP_WARNING("macro min is incompatible with C++. Try #define NOMINMAX "
15 "before any Windows header. #undefing min")
17 #warning: macro min is incompatible with C++. #undefing min
24 #if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
25 #if defined(_LIBCPP_WARNING)
26 _LIBCPP_WARNING("macro max is incompatible with C++. Try #define NOMINMAX "
27 "before any Windows header. #undefing max")
29 #warning: macro max is incompatible with C++. #undefing max