gfx/skia/patches/archive/SkPostConfig.patch

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 diff --git a/gfx/skia/include/core/SkPostConfig.h b/gfx/skia/include/core/SkPostConfig.h
     2 --- a/gfx/skia/include/core/SkPostConfig.h
     3 +++ b/gfx/skia/include/core/SkPostConfig.h
     4 @@ -277,19 +277,28 @@
     5  #endif
     7  //////////////////////////////////////////////////////////////////////
     9  #ifndef SK_OVERRIDE
    10  #if defined(_MSC_VER)
    11  #define SK_OVERRIDE override
    12  #elif defined(__clang__)
    13 +#if __has_feature(cxx_override_control)
    14  // Some documentation suggests we should be using __attribute__((override)),
    15  // but it doesn't work.
    16  #define SK_OVERRIDE override
    17 +#elif defined(__has_extension)
    18 +#if __has_extension(cxx_override_control)
    19 +#define SK_OVERRIDE override
    20 +#endif
    21 +#endif
    22 +#ifndef SK_OVERRIDE
    23 +#define SK_OVERRIDE
    24 +#endif
    25  #else
    26  // Linux GCC ignores "__attribute__((override))" and rejects "override".
    27  #define SK_OVERRIDE
    28  #endif
    29  #endif
    31  //////////////////////////////////////////////////////////////////////

mercurial