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.

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

mercurial