mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 20:32:49 +00:00
More mingw fixes
This commit is contained in:
parent
03ee6a0295
commit
57f9f06619
4
posix.h
4
posix.h
@ -61,9 +61,9 @@
|
|||||||
# define FMT_SYSTEM(call) call
|
# define FMT_SYSTEM(call) call
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
// Fix warnings about deprecated symbols.
|
// Fix warnings about deprecated symbols.
|
||||||
# define FMT_POSIX_CALL(call) ::_##call
|
# define FMT_POSIX_CALL(call) (::_##call)
|
||||||
# else
|
# else
|
||||||
# define FMT_POSIX_CALL(call) (::call)
|
# define FMT_POSIX_CALL(call) ::call
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ struct stat;
|
|||||||
|
|
||||||
namespace test {
|
namespace test {
|
||||||
|
|
||||||
#ifndef _WIN32
|
#if !defined(_WIN32) || defined(__MINGW32__)
|
||||||
// Size type for read and write.
|
// Size type for read and write.
|
||||||
typedef size_t size_t;
|
typedef size_t size_t;
|
||||||
typedef ssize_t ssize_t;
|
typedef ssize_t ssize_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user