add support for older GCC versions

This commit is contained in:
Gregory Czajkowski 2013-11-15 16:00:09 -08:00
parent 9cc24166b5
commit 7b22272fbf

View File

@ -56,9 +56,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 {
@ -1236,7 +1238,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_