1*4d6fc14bSjoerg// -*- C++ -*- 2*4d6fc14bSjoerg//===------------------------ __undef_macros ------------------------------===// 3*4d6fc14bSjoerg// 4*4d6fc14bSjoerg// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5*4d6fc14bSjoerg// See https://llvm.org/LICENSE.txt for license information. 6*4d6fc14bSjoerg// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7*4d6fc14bSjoerg// 8*4d6fc14bSjoerg//===----------------------------------------------------------------------===// 9*4d6fc14bSjoerg 10*4d6fc14bSjoerg 11*4d6fc14bSjoerg#ifdef min 12*4d6fc14bSjoerg#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS) 13*4d6fc14bSjoerg#if defined(_LIBCPP_WARNING) 14*4d6fc14bSjoerg_LIBCPP_WARNING("macro min is incompatible with C++. Try #define NOMINMAX " 15*4d6fc14bSjoerg "before any Windows header. #undefing min") 16*4d6fc14bSjoerg#else 17*4d6fc14bSjoerg#warning: macro min is incompatible with C++. #undefing min 18*4d6fc14bSjoerg#endif 19*4d6fc14bSjoerg#endif 20*4d6fc14bSjoerg#undef min 21*4d6fc14bSjoerg#endif 22*4d6fc14bSjoerg 23*4d6fc14bSjoerg#ifdef max 24*4d6fc14bSjoerg#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS) 25*4d6fc14bSjoerg#if defined(_LIBCPP_WARNING) 26*4d6fc14bSjoerg_LIBCPP_WARNING("macro max is incompatible with C++. Try #define NOMINMAX " 27*4d6fc14bSjoerg "before any Windows header. #undefing max") 28*4d6fc14bSjoerg#else 29*4d6fc14bSjoerg#warning: macro max is incompatible with C++. #undefing max 30*4d6fc14bSjoerg#endif 31*4d6fc14bSjoerg#endif 32*4d6fc14bSjoerg#undef max 33*4d6fc14bSjoerg#endif 34