This commit is contained in:
vitaut 2015-03-12 07:24:15 -07:00
parent 752580a5c2
commit b2207f9d05
2 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#include "posix.h"
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifndef _WIN32

View File

@ -28,8 +28,12 @@
#ifndef 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 <sys/types.h> // required for fcntl.h on MinGW
#include <fcntl.h> // for O_RDONLY
#include <stdio.h>