Skip to content

Commit

Permalink
Merge pull request #6 from gcflymoto/master
Browse files Browse the repository at this point in the history
add support for older GCC versions
  • Loading branch information
vitaut committed Nov 16, 2013
2 parents b697a7d + 7b22272 commit 16cb991
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions format.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@
#endif

#ifdef __GNUC__
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wlong-long"
#endif
#endif

namespace fmt {

Expand Down Expand Up @@ -1234,7 +1236,9 @@ inline Formatter<Write> Print(StringRef format) {
}

#ifdef __GNUC__
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
# pragma GCC diagnostic pop
#endif
#endif

#endif // FORMAT_H_

0 comments on commit 16cb991

Please sign in to comment.