1// -*- C++ -*- 2//===------------------------ __undef_macros ------------------------------===// 3// 4// The LLVM Compiler Infrastructure 5// 6// This file is distributed under the University of Illinois Open Source 7// License. See LICENSE.TXT for details. 8// 9//===----------------------------------------------------------------------===// 10 11 12#ifdef min 13#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS) 14#if defined(_LIBCPP_WARNING) 15_LIBCPP_WARNING("macro min is incompatible with C++. Try #define NOMINMAX " 16 "before any Windows header. #undefing min") 17#else 18#warning: macro min is incompatible with C++. #undefing min 19#endif 20#endif 21#undef min 22#endif 23 24#ifdef max 25#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS) 26#if defined(_LIBCPP_WARNING) 27_LIBCPP_WARNING("macro max is incompatible with C++. Try #define NOMINMAX " 28 "before any Windows header. #undefing max") 29#else 30#warning: macro max is incompatible with C++. #undefing max 31#endif 32#endif 33#undef max 34#endif 35