From 7ff705023df8f56cfdc3d3df215e96f7ac5caee7 Mon Sep 17 00:00:00 2001 From: djsollen Date: Fri, 20 Feb 2015 12:35:37 -0800 Subject: [PATCH] Enable override keyword for GCC versions >= 4.7 Review URL: https://codereview.chromium.org/945803005 --- include/core/SkPostConfig.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index ad0098f429..41ad930989 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -302,6 +302,9 @@ # elif defined(__has_extension) && __has_extension(cxx_override_control) # define SK_OVERRIDE override # endif + // if GCC >= 4.7 +# elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) +# define SK_OVERRIDE override # endif # ifndef SK_OVERRIDE # define SK_OVERRIDE