aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2015-02-20 12:35:37 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-20 12:35:37 -0800
commit7ff705023df8f56cfdc3d3df215e96f7ac5caee7 (patch)
treeffad8bc810e1339205f5491b43ec796d940ed015
parent2aa1f7e6799501974532d35c1f6c3a0447121b95 (diff)
Enable override keyword for GCC versions >= 4.7
-rw-r--r--include/core/SkPostConfig.h3
1 files changed, 3 insertions, 0 deletions
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