annotate libcxx/include/__undef_macros @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // -*- C++ -*-
anatofuz
parents:
diff changeset
2 //===------------------------ __undef_macros ------------------------------===//
anatofuz
parents:
diff changeset
3 //
anatofuz
parents:
diff changeset
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
5 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
7 //
anatofuz
parents:
diff changeset
8 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 #ifdef min
anatofuz
parents:
diff changeset
12 #if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
anatofuz
parents:
diff changeset
13 #if defined(_LIBCPP_WARNING)
anatofuz
parents:
diff changeset
14 _LIBCPP_WARNING("macro min is incompatible with C++. Try #define NOMINMAX "
anatofuz
parents:
diff changeset
15 "before any Windows header. #undefing min")
anatofuz
parents:
diff changeset
16 #else
anatofuz
parents:
diff changeset
17 #warning: macro min is incompatible with C++. #undefing min
anatofuz
parents:
diff changeset
18 #endif
anatofuz
parents:
diff changeset
19 #endif
anatofuz
parents:
diff changeset
20 #undef min
anatofuz
parents:
diff changeset
21 #endif
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 #ifdef max
anatofuz
parents:
diff changeset
24 #if !defined(_LIBCPP_DISABLE_MACRO_CONFLICT_WARNINGS)
anatofuz
parents:
diff changeset
25 #if defined(_LIBCPP_WARNING)
anatofuz
parents:
diff changeset
26 _LIBCPP_WARNING("macro max is incompatible with C++. Try #define NOMINMAX "
anatofuz
parents:
diff changeset
27 "before any Windows header. #undefing max")
anatofuz
parents:
diff changeset
28 #else
anatofuz
parents:
diff changeset
29 #warning: macro max is incompatible with C++. #undefing max
anatofuz
parents:
diff changeset
30 #endif
anatofuz
parents:
diff changeset
31 #endif
anatofuz
parents:
diff changeset
32 #undef max
anatofuz
parents:
diff changeset
33 #endif