FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
warn_windows_macro.hpp
Go to the documentation of this file.
1// Copyright 2025 Arthur Sonzogni. All rights reserved.
2// Use of this source code is governed by the MIT license that can be found in
3// the LICENSE file.
4
5#ifndef FTXUI_UTIL_WARN_WINDOWS_MACRO_H_
6#define FTXUI_UTIL_WARN_WINDOWS_MACRO_H_
7
8#ifdef min
9#error \
10 "定義了宏 'min',這與標準 C++ 庫和 FTXUI 衝突。這通常是由於包含了 <windows.h> 引起的。要解決此問題,請在包含 <windows.h> 之前添加 '#define NOMINMAX',或將 '/DNOMINMAX' 作為編譯器標誌傳遞。"
11#endif
12
13#ifdef max
14#error \
15 "定義了宏 'max',這與標準 C++ 庫和 FTXUI 衝突。這通常是由於包含了 <windows.h> 引起的。要解決此問題,請在包含 <windows.h> 之前添加 '#define NOMINMAX',或將 '/DNOMINMAX' 作為編譯器標誌傳遞。"
16#endif
17
18#endif // FTXUI_UTIL_WARN_WINDOWS_MACRO_H_