build/stlport/src/stlport_prefix.h

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 #ifndef STLPORT_PREFIX_H
     2 #define STLPORT_PREFIX_H
     4 #define __BUILDING_STLPORT 1
     6 #if defined (_WIN32) || defined (WIN32)
     7 #  ifdef __cplusplus
     8 #    define WIN32_LEAN_AND_MEAN
     9 #    define NOSERVICE
    10 #  endif
    11 #endif
    13 #undef _STLP_NO_FORCE_INSTANTIATE
    15 /* Please add extra compilation switches for particular compilers here */
    17 #if defined (_MSC_VER) && !defined (__COMO__) && !defined (__MWERKS__)
    18 #  include "warning_disable.h"
    19 #endif
    21 #include <stl/config/features.h>
    23 #if defined (_STLP_USE_TEMPLATE_EXPORT) && defined (_STLP_USE_DECLSPEC) && !defined (_STLP_EXPOSE_GLOBALS_IMPLEMENTATION)
    24 #  define _STLP_EXPOSE_GLOBALS_IMPLEMENTATION
    25 #endif
    27 #ifdef __cplusplus
    29 #  include <ctime>
    30 #  if defined (_STLP_USE_NAMESPACES) && !defined (_STLP_VENDOR_GLOBAL_CSTD)
    31 using _STLP_VENDOR_CSTD::time_t;
    32 #  endif
    34 #  if defined (_STLP_FUNCTION_TMPL_PARTIAL_ORDER)
    35 #    define _STLP_OPERATOR_SPEC _STLP_DECLSPEC
    36 #  else
    37 #    define _STLP_OPERATOR_SPEC _STLP_TEMPLATE_NULL _STLP_DECLSPEC
    38 #  endif
    40 #endif /* __cplusplus */
    42 #endif /* PREFIX */

mercurial