Files
YYCCommonplace/src/YYCC/WinImportPrefix.hpp

19 lines
479 B
C++
Raw Normal View History

// It is by design that no pragma once or #if to prevent deplicated including.
// Because this header is the part of wrapper, not a real header.
// #pragma once
2024-04-25 10:38:13 +08:00
#include "YYCCInternal.hpp"
#if YYCC_OS == YYCC_OS_WINDOWS
2024-04-29 15:48:10 +08:00
// Define 2 macros to disallow Windows generate MIN and MAX macros
// which cause std::min and std::max can not function as normal.
#if !defined(WIN32_LEAN_AND_MEAN)
2024-04-29 15:48:10 +08:00
#define WIN32_LEAN_AND_MEAN
#endif
#if !defined(NOMINMAX)
2024-04-29 15:48:10 +08:00
#define NOMINMAX
#endif
2024-04-25 10:38:13 +08:00
#endif