Skip to content

Commit

Permalink
Fix compilation on Cygwin (#388)
Browse files Browse the repository at this point in the history
(cherry picked from commit cee50b7)
  • Loading branch information
vitaut authored and foonathan committed Oct 23, 2016
1 parent 6e6adf4 commit 1c9a674
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fmt/posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef FMT_POSIX_H_
#define FMT_POSIX_H_

#ifdef __MINGW32__
#if defined(__MINGW32__) || defined(__CYGWIN__)
// Workaround MinGW bug https://sourceforge.net/p/mingw/bugs/2024/.
# undef __STRICT_ANSI__
#endif
Expand Down Expand Up @@ -321,7 +321,8 @@ class File {
// Returns the memory page size.
long getpagesize();

#if (defined(LC_NUMERIC_MASK) || defined(_MSC_VER)) && !defined(__ANDROID__)
#if (defined(LC_NUMERIC_MASK) || defined(_MSC_VER)) && \
!defined(__ANDROID__) && !defined(__CYGWIN__)
# define FMT_LOCALE
#endif

Expand Down

0 comments on commit 1c9a674

Please sign in to comment.