mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
dd137bcf96
--HG-- extra : rebase_source : 6b785879615aea4b9be0c31edb51bc86f8c958f9
39 lines
1.0 KiB
Diff
39 lines
1.0 KiB
Diff
diff --git a/mfbt/double-conversion/source/utils.h b/mfbt/double-conversion/source/utils.h
|
|
--- a/mfbt/double-conversion/source/utils.h
|
|
+++ b/mfbt/double-conversion/source/utils.h
|
|
@@ -93,34 +93,18 @@ inline void abort_noreturn() { abort();
|
|
#endif
|
|
|
|
#if defined(__GNUC__)
|
|
#define DOUBLE_CONVERSION_UNUSED __attribute__((unused))
|
|
#else
|
|
#define DOUBLE_CONVERSION_UNUSED
|
|
#endif
|
|
|
|
-#if defined(_WIN32) && !defined(__MINGW32__)
|
|
-
|
|
-typedef signed char int8_t;
|
|
-typedef unsigned char uint8_t;
|
|
-typedef short int16_t; // NOLINT
|
|
-typedef unsigned short uint16_t; // NOLINT
|
|
-typedef int int32_t;
|
|
-typedef unsigned int uint32_t;
|
|
-typedef __int64 int64_t;
|
|
-typedef unsigned __int64 uint64_t;
|
|
-// intptr_t and friends are defined in crtdefs.h through stdio.h.
|
|
-
|
|
-#else
|
|
-
|
|
#include <stdint.h>
|
|
|
|
-#endif
|
|
-
|
|
typedef uint16_t uc16;
|
|
|
|
// The following macro works on both 32 and 64-bit platforms.
|
|
// Usage: instead of writing 0x1234567890123456
|
|
// write UINT64_2PART_C(0x12345678,90123456);
|
|
#define UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
|
|
|
|
|