From 7b22272fbfab2831779b0eddaee9b1ebe0845539 Mon Sep 17 00:00:00 2001 From: Gregory Czajkowski Date: Fri, 15 Nov 2013 16:00:09 -0800 Subject: [PATCH] add support for older GCC versions --- format.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/format.h b/format.h index cd655ec9ba0b..da01030218a4 100644 --- a/format.h +++ b/format.h @@ -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 Print(StringRef format) { } #ifdef __GNUC__ +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) # pragma GCC diagnostic pop #endif +#endif #endif // FORMAT_H_