Files
YYCCommonplace/src/yycc/windows/import_guard_head.hpp

20 lines
488 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
2025-06-20 23:38:34 +08:00
#include "../macro/os_detector.hpp"
2024-04-25 10:38:13 +08:00
#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
2025-06-20 23:38:34 +08:00
#endif