Skip to content

Commit

Permalink
Defines are still needed for FMT_MODULE as well (#4027)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt77hias committed Jun 24, 2024
1 parent 06948fa commit bbf44cc
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions src/os.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,6 @@
# define WIN32_LEAN_AND_MEAN
# endif
# 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 // FMT_USE_FCNTL

Expand All @@ -57,6 +38,27 @@
# 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 {
#ifdef _WIN32
// Return type of read and write functions.
Expand Down

0 comments on commit bbf44cc

Please sign in to comment.