mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 17:15:37 +00:00
70e05c67ce
upstream commit 1931d3cb20a00da732c5210b123656632982fde0
34 lines
1.0 KiB
C++
Vendored
34 lines
1.0 KiB
C++
Vendored
// -*- C++ -*-
|
|
//===------------------------ __undef_macros ------------------------------===//
|
|
//
|
|
// 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
|