Skip to content

Commit

Permalink
ICU-22721 Delete obsolete __STRICT_ANSI__ workaround for MinGW.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
roubert authored and markusicu committed May 10, 2024
1 parent 63afc76 commit 564c92d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions icu4c/source/common/putil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 564c92d

Please sign in to comment.