2012-03-13 10:09:15 -04: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-23 16:47:26 -04:00
|
|
|
#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
|
2014-01-29 14:30:27 -05:00
|
|
|
#if defined(_MSC_VER) && ! defined(__clang__)
|
|
|
|
|
_LIBCPP_WARNING("macro min is incompatible with C++. Try #define NOMINMAX "
|
|
|
|
|
"before any Windows header. #undefing min")
|
|
|
|
|
#else
|
2012-10-22 14:04:00 -04:00
|
|
|
#warning: macro min is incompatible with C++. #undefing min
|
2014-01-29 14:30:27 -05:00
|
|
|
#endif
|
2016-07-23 16:47:26 -04:00
|
|
|
#endif
|
2012-03-13 10:09:15 -04:00
|
|
|
#undef min
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef max
|
2016-07-23 16:47:26 -04:00
|
|
|
#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
|
2014-01-29 14:30:27 -05:00
|
|
|
#if defined(_MSC_VER) && ! defined(__clang__)
|
|
|
|
|
_LIBCPP_WARNING("macro max is incompatible with C++. Try #define NOMINMAX "
|
|
|
|
|
"before any Windows header. #undefing max")
|
|
|
|
|
#else
|
2012-10-22 14:04:00 -04:00
|
|
|
#warning: macro max is incompatible with C++. #undefing max
|
2014-01-29 14:30:27 -05:00
|
|
|
#endif
|
2016-07-23 16:47:26 -04:00
|
|
|
#endif
|
2012-03-13 10:09:15 -04:00
|
|
|
#undef max
|
|
|
|
|
#endif
|