js/public/RequiredDefines.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
michael@0 2 * vim: set ts=8 sts=4 et sw=4 tw=99:
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 /*
michael@0 8 * Various #defines required to build SpiderMonkey. Embedders should add this
michael@0 9 * file to the start of the command line via -include or a similar mechanism,
michael@0 10 * or SpiderMonkey public headers may not work correctly.
michael@0 11 */
michael@0 12
michael@0 13 #ifndef js_RequiredDefines_h
michael@0 14 #define js_RequiredDefines_h
michael@0 15
michael@0 16 /*
michael@0 17 * The c99 defining the limit macros (UINT32_MAX for example), says:
michael@0 18 *
michael@0 19 * C++ implementations should define these macros only when
michael@0 20 * __STDC_LIMIT_MACROS is defined before <stdint.h> is included.
michael@0 21 *
michael@0 22 * The same also occurs with __STDC_CONSTANT_MACROS for the constant macros
michael@0 23 * (INT8_C for example) used to specify a literal constant of the proper type,
michael@0 24 * and with __STDC_FORMAT_MACROS for the format macros (PRId32 for example) used
michael@0 25 * with the fprintf function family.
michael@0 26 */
michael@0 27 #define __STDC_LIMIT_MACROS
michael@0 28 #define __STDC_CONSTANT_MACROS
michael@0 29 #define __STDC_FORMAT_MACROS
michael@0 30
michael@0 31 /* Also define a char16_t type if not provided by the compiler. */
michael@0 32 #include "mozilla/Char16.h"
michael@0 33
michael@0 34 #endif /* js_RequiredDefines_h */

mercurial