From 564c92d666354a8ed0f99cba0f239eba790bd148 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Fri, 10 May 2024 21:53:39 +0200 Subject: [PATCH] ICU-22721 Delete obsolete __STRICT_ANSI__ workaround for MinGW. This was originally added in the year 2004 for ICU-3854 but is no longer needed with contemporary versions of MinGW where it instead as of GCC 14 causes this problem: __STRICT_ANSI__ seems to have been undefined; this is not supported. --- icu4c/source/common/putil.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/icu4c/source/common/putil.cpp b/icu4c/source/common/putil.cpp index 92c7940827a9..edade89f98fd 100644 --- a/icu4c/source/common/putil.cpp +++ b/icu4c/source/common/putil.cpp @@ -46,11 +46,6 @@ // First, the platform type. Need this for U_PLATFORM. #include "unicode/platform.h" -#if U_PLATFORM == U_PF_MINGW && defined __STRICT_ANSI__ -/* tzset isn't defined in strict ANSI on MinGW. */ -#undef __STRICT_ANSI__ -#endif - /* * Cygwin with GCC requires inclusion of time.h after the above disabling strict asci mode statement. */