2
0

disable-crt-secure-warnings.patch 615 B

12345678910111213141516171819202122232425
  1. From 76e16e35a47a76e3eab00e55867abd203be8ffbf Mon Sep 17 00:00:00 2001
  2. From: Redbeanw44602 <[email protected]>
  3. Date: Thu, 2 Jan 2025 22:25:44 +0800
  4. Subject: [PATCH] disable crt secure warnings.
  5. ---
  6. util/env_windows.cc | 2 ++
  7. 1 file changed, 2 insertions(+)
  8. diff --git a/util/env_windows.cc b/util/env_windows.cc
  9. index 1c74b02..76eb58a 100644
  10. --- a/util/env_windows.cc
  11. +++ b/util/env_windows.cc
  12. @@ -4,6 +4,8 @@
  13. // Prevent Windows headers from defining min/max macros and instead
  14. // use STL.
  15. +#define _CRT_SECURE_NO_WARNINGS
  16. +
  17. #ifndef NOMINMAX
  18. #define NOMINMAX
  19. #endif // ifndef NOMINMAX
  20. --
  21. 2.47.1