gfx/skia/patches/0025-Bug-896049-Add-default-Value-SK_OVERRIDE.patch

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 @@ -325,19 +325,19 @@
     5              // Some documentation suggests we should be using __attribute__((override)),
     6              // but it doesn't work.
     7              #define SK_OVERRIDE override
     8          #elif defined(__has_extension)
     9              #if __has_extension(cxx_override_control)
    10                  #define SK_OVERRIDE override
    11              #endif
    12          #endif
    13 -    #else
    14 -        // Linux GCC ignores "__attribute__((override))" and rejects "override".
    15 -        #define SK_OVERRIDE
    16 +    #endif
    17 +    #ifndef SK_OVERRIDE
    18 +	#define SK_OVERRIDE
    19      #endif
    20  #endif
    22  //////////////////////////////////////////////////////////////////////
    24  #ifndef SK_PRINTF_LIKE
    25  #if defined(__clang__) || defined(__GNUC__)
    26  #define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B))))

mercurial