fix: fix safe num overflow ops issue under MSVC

This commit is contained in:
2025-08-13 09:51:40 +08:00
parent c4d441f5fa
commit 0ab470367c

View File

@ -17,6 +17,11 @@
// Import essential header if we are using Windows function family.
#if defined(YYCC_HARDWARE_OVERFLOW_WIN32_FNS)
// YYC MARK:
// This macro is crucial for including "intsafe.h"
// Without this, "intsafe.h" will not enable signed integral operations.
#define ENABLE_INTSAFE_SIGNED_FUNCTIONS
#include "../windows/import_guard_head.hpp"
#include <intsafe.h>
#include "../windows/import_guard_tail.hpp"