Remove an old mingw workaround (#2059) (#3975)

Backports fix from master branch as the code no longer compiles
on mingw64/gcc 14.1.0 without gnu extensions enabled.
This commit is contained in:
Janusz Chorko
2024-05-25 16:49:24 +02:00
committed by GitHub
parent 3e8d2c57f3
commit 8f5e07656e

View File

@ -10,11 +10,6 @@
#ifndef FMT_POSIX_H_
#define FMT_POSIX_H_
#if defined(__MINGW32__) || defined(__CYGWIN__)
// Workaround MinGW bug https://sourceforge.net/p/mingw/bugs/2024/.
# undef __STRICT_ANSI__
#endif
#include <errno.h>
#include <fcntl.h> // for O_RDONLY
#include <locale.h> // for locale_t