Bug 1888033 - [Menu Redesign] Add a secret setting and feature flag for the menu...
[gecko.git] / modules / fdlibm / patches / 12_define_u_int32_t_and_u_int64_t_on_windows.patch
blob895509c8d2ff52738edaabcc3bf3b75242d8afc2
1 diff --git a/math_private.h b/math_private.h
2 --- a/math_private.h
3 +++ b/math_private.h
4 @@ -33,16 +33,23 @@
5 * to dig two 32 bit words out of the 64 bit IEEE floating point
6 * value. That is non-ANSI, and, moreover, the gcc instruction
7 * scheduler gets it wrong. We instead use the following macros.
8 * Unlike the original code, we determine the endianness at compile
9 * time, not at run time; I don't see much benefit to selecting
10 * endianness at run time.
13 +#ifndef u_int32_t
14 +#define u_int32_t uint32_t
15 +#endif
16 +#ifndef u_int64_t
17 +#define u_int64_t uint64_t
18 +#endif
20 /* A union which permits us to convert between a long double and
21 four 32 bit ints. */
23 #if MOZ_BIG_ENDIAN()
25 typedef union
27 long double value;