mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-26 01:39:11 +00:00
eb8650a757
We've stopped doing it in libc++ for a while now because these names would end up rotting as we move things around and copy/paste stuff. This cleans up all the existing files so as to stop the spreading as people copy-paste headers around.
34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
#ifdef min
|
|
#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
|
|
#if defined(_LIBCPP_WARNING)
|
|
_LIBCPP_WARNING("macro min is incompatible with C++. Try #define NOMINMAX "
|
|
"before any Windows header. #undefing min")
|
|
#else
|
|
#warning: macro min is incompatible with C++. #undefing min
|
|
#endif
|
|
#endif
|
|
#undef min
|
|
#endif
|
|
|
|
#ifdef max
|
|
#if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
|
|
#if defined(_LIBCPP_WARNING)
|
|
_LIBCPP_WARNING("macro max is incompatible with C++. Try #define NOMINMAX "
|
|
"before any Windows header. #undefing max")
|
|
#else
|
|
#warning: macro max is incompatible with C++. #undefing max
|
|
#endif
|
|
#endif
|
|
#undef max
|
|
#endif
|