intl/icu-patches/qualify-uinitonce-windows.diff

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 diff --git a/intl/icu/source/common/umutex.h b/intl/icu/source/common/umutex.h
     2 --- a/intl/icu/source/common/umutex.h
     3 +++ b/intl/icu/source/common/umutex.h
     4 @@ -315,17 +315,17 @@ U_NAMESPACE_END
     5  # define NOMCX
     6  # ifndef NOMINMAX
     7  # define NOMINMAX
     8  # endif
     9  # include <windows.h>
    12  typedef struct UMutex {
    13 -    UInitOnce         fInitOnce;
    14 +    icu::UInitOnce    fInitOnce;
    15      CRITICAL_SECTION  fCS;
    16  } UMutex;
    18  /* Initializer for a static UMUTEX. Deliberately contains no value for the
    19   *  CRITICAL_SECTION.
    20   */
    21  #define U_MUTEX_INITIALIZER {U_INITONCE_INITIALIZER}

mercurial