mirror of
https://github.com/fmtlib/fmt.git
synced 2024-07-05 12:38:53 +00:00
Defines are still needed for FMT_MODULE as well (#4027)
This commit is contained in:
parent
06948fa710
commit
bbf44cc000
40
src/os.cc
40
src/os.cc
|
@ -30,25 +30,6 @@
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
# endif
|
# endif
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
|
|
||||||
# ifndef S_IRUSR
|
|
||||||
# define S_IRUSR _S_IREAD
|
|
||||||
# endif
|
|
||||||
# ifndef S_IWUSR
|
|
||||||
# define S_IWUSR _S_IWRITE
|
|
||||||
# endif
|
|
||||||
# ifndef S_IRGRP
|
|
||||||
# define S_IRGRP 0
|
|
||||||
# endif
|
|
||||||
# ifndef S_IWGRP
|
|
||||||
# define S_IWGRP 0
|
|
||||||
# endif
|
|
||||||
# ifndef S_IROTH
|
|
||||||
# define S_IROTH 0
|
|
||||||
# endif
|
|
||||||
# ifndef S_IWOTH
|
|
||||||
# define S_IWOTH 0
|
|
||||||
# endif
|
|
||||||
# endif // _WIN32
|
# endif // _WIN32
|
||||||
# endif // FMT_USE_FCNTL
|
# endif // FMT_USE_FCNTL
|
||||||
|
|
||||||
|
@ -57,6 +38,27 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
# ifndef S_IRUSR
|
||||||
|
# define S_IRUSR _S_IREAD
|
||||||
|
# endif
|
||||||
|
# ifndef S_IWUSR
|
||||||
|
# define S_IWUSR _S_IWRITE
|
||||||
|
# endif
|
||||||
|
# ifndef S_IRGRP
|
||||||
|
# define S_IRGRP 0
|
||||||
|
# endif
|
||||||
|
# ifndef S_IWGRP
|
||||||
|
# define S_IWGRP 0
|
||||||
|
# endif
|
||||||
|
# ifndef S_IROTH
|
||||||
|
# define S_IROTH 0
|
||||||
|
# endif
|
||||||
|
# ifndef S_IWOTH
|
||||||
|
# define S_IWOTH 0
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Return type of read and write functions.
|
// Return type of read and write functions.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user