mfbt/double-conversion/use-StandardInteger.patch

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 diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h
michael@0 2 index cd3e330..bdc7d4b 100644
michael@0 3 --- a/mfbt/double-conversion/utils.h
michael@0 4 +++ b/mfbt/double-conversion/utils.h
michael@0 5 @@ -74,23 +74,7 @@
michael@0 6 #endif
michael@0 7
michael@0 8
michael@0 9 -#if defined(_WIN32) && !defined(__MINGW32__)
michael@0 10 -
michael@0 11 -typedef signed char int8_t;
michael@0 12 -typedef unsigned char uint8_t;
michael@0 13 -typedef short int16_t; // NOLINT
michael@0 14 -typedef unsigned short uint16_t; // NOLINT
michael@0 15 -typedef int int32_t;
michael@0 16 -typedef unsigned int uint32_t;
michael@0 17 -typedef __int64 int64_t;
michael@0 18 -typedef unsigned __int64 uint64_t;
michael@0 19 -// intptr_t and friends are defined in crtdefs.h through stdio.h.
michael@0 20 -
michael@0 21 -#else
michael@0 22 -
michael@0 23 -#include <stdint.h>
michael@0 24 -
michael@0 25 -#endif
michael@0 26 +#include <stdint.h>
michael@0 27
michael@0 28 // The following macro works on both 32 and 64-bit platforms.
michael@0 29 // Usage: instead of writing 0x1234567890123456

mercurial