mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 03:21:34 +00:00
Workaround MinGW bug https://sourceforge.net/p/mingw/bugs/2024/
This commit is contained in:
parent
752580a5c2
commit
b2207f9d05
1
posix.cc
1
posix.cc
@ -33,6 +33,7 @@
|
|||||||
#include "posix.h"
|
#include "posix.h"
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
6
posix.h
6
posix.h
@ -28,8 +28,12 @@
|
|||||||
#ifndef FMT_POSIX_H_
|
#ifndef FMT_POSIX_H_
|
||||||
#define FMT_POSIX_H_
|
#define FMT_POSIX_H_
|
||||||
|
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
// Workaround MinGW bug https://sourceforge.net/p/mingw/bugs/2024/.
|
||||||
|
# undef __STRICT_ANSI__
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/types.h> // required for fcntl.h on MinGW
|
|
||||||
#include <fcntl.h> // for O_RDONLY
|
#include <fcntl.h> // for O_RDONLY
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user