[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 47f54ead 5/5: Use msvcrt snprintf() after all
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 47f54ead 5/5: Use msvcrt snprintf() after all |
Date: |
Tue, 24 May 2022 22:18:38 -0400 (EDT) |
branch: master
commit 47f54ead2143d489a047d013954483b51d53878d
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Use msvcrt snprintf() after all
See:
https://lists.nongnu.org/archive/html/lmi/2022-05/msg00047.html
---
config.hpp | 9 ---------
test_coding_rules.cpp | 1 -
2 files changed, 10 deletions(-)
diff --git a/config.hpp b/config.hpp
index 542295f9..62e45ace 100644
--- a/config.hpp
+++ b/config.hpp
@@ -97,15 +97,6 @@
# endif // !defined LMI_X87
#endif // defined LMI_X86
-// This selects a correct snprintf() for MinGW-w64. Discussion:
-// https://lists.nongnu.org/archive/html/lmi/2022-05/msg00041.html
-
-#if defined __GNUC__
-# if !defined _ISOC99_SOURCE
-# define _ISOC99_SOURCE
-# endif // !defined _ISOC99_SOURCE
-#endif // defined __GNUC__
-
// 'platform_dependent.hpp' includes standard headers in an unusual
// way, and must be included before any standard headers are seen.
// Do that here to quarantine the weirdness.
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index 16287814..ea935eb6 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -936,7 +936,6 @@ bool check_reserved_name_exception(std::string const& s)
,"__func__"
,"__has_include"
// Platform identification.
- ,"_ISOC99_SOURCE"
,"_M_IX86"
,"_M_IX86_FP"
,"_M_X64"