components/desktop/thunderbird/patches/firefox-34-lz4-restrict-keyword.patch
changeset 6431 e4667e7df088
equal deleted inserted replaced
6430:74bc7531ae5a 6431:e4667e7df088
       
     1 Correctly recognize the "restrict" keyword for the lz4.c file included in
       
     2 Compression.cpp
       
     3 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57025
       
     4 
       
     5 diff --git a/mfbt/lz4.c b/mfbt/lz4.c
       
     6 --- a/mfbt/lz4.c
       
     7 +++ b/mfbt/lz4.c
       
     8 @@ -104,7 +104,7 @@
       
     9  /**************************************
       
    10   Compiler Options
       
    11  **************************************/
       
    12 -#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)   /* C99 */
       
    13 +#if defined(__STDC_VERSION__) && !defined(__cplusplus) && (__STDC_VERSION__ >= 199901L)   /* C99 */
       
    14  /* "restrict" is a known keyword */
       
    15  #else
       
    16  #  define restrict /* Disable restrict */