2011-11-29 16:45:27 +00: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
|
2016-07-12 14:39:13 +00:00
|
|
|
#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
|
2013-10-04 21:14:44 +00:00
|
|
|
#if defined(_MSC_VER) && ! defined(__clang__)
|
2013-11-15 23:41:01 +00:00
|
|
|
_LIBCPP_WARNING("macro min is incompatible with C++. Try #define NOMINMAX "
|
|
|
|
"before any Windows header. #undefing min")
|
2013-10-04 21:14:44 +00:00
|
|
|
#else
|
2012-09-03 18:13:11 +00:00
|
|
|
#warning: macro min is incompatible with C++. #undefing min
|
2013-10-04 21:14:44 +00:00
|
|
|
#endif
|
2016-07-12 14:39:13 +00:00
|
|
|
#endif
|
2011-11-29 16:45:27 +00:00
|
|
|
#undef min
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef max
|
2016-07-12 14:39:13 +00:00
|
|
|
#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
|
2013-10-04 21:14:44 +00:00
|
|
|
#if defined(_MSC_VER) && ! defined(__clang__)
|
2013-11-15 23:41:01 +00:00
|
|
|
_LIBCPP_WARNING("macro max is incompatible with C++. Try #define NOMINMAX "
|
|
|
|
"before any Windows header. #undefing max")
|
2013-10-04 21:14:44 +00:00
|
|
|
#else
|
2012-09-03 18:13:11 +00:00
|
|
|
#warning: macro max is incompatible with C++. #undefing max
|
2013-10-04 21:14:44 +00:00
|
|
|
#endif
|
2016-07-12 14:39:13 +00:00
|
|
|
#endif
|
2011-11-29 16:45:27 +00:00
|
|
|
#undef max
|
|
|
|
#endif
|