2011-11-30 00:45:27 +08:00
|
|
|
// -*- C++ -*-
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifdef min
|
2013-10-05 05:14:44 +08:00
|
|
|
#if defined(_MSC_VER) && ! defined(__clang__)
|
|
|
|
_LIBCPP_WARNING("macro min is incompatible with C++. #undefing min")
|
|
|
|
#else
|
2012-09-04 02:13:11 +08:00
|
|
|
#warning: macro min is incompatible with C++. #undefing min
|
2013-10-05 05:14:44 +08:00
|
|
|
#endif
|
2011-11-30 00:45:27 +08:00
|
|
|
#undef min
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef max
|
2013-10-05 05:14:44 +08:00
|
|
|
#if defined(_MSC_VER) && ! defined(__clang__)
|
|
|
|
_LIBCPP_WARNING("macro max is incompatible with C++. #undefing max")
|
|
|
|
#else
|
2012-09-04 02:13:11 +08:00
|
|
|
#warning: macro max is incompatible with C++. #undefing max
|
2013-10-05 05:14:44 +08:00
|
|
|
#endif
|
2011-11-30 00:45:27 +08:00
|
|
|
#undef max
|
|
|
|
#endif
|