modules/fdlibm/patches/12_define_u_int32_t_and_u_int64_t_on_windows.patch
author Carsten "Tomcat" Book <cbook@mozilla.com>
Fri, 27 May 2016 09:05:25 +0200
changeset 338272 6b521813510a57d2504d175970c2c94127f60985
parent 329670 c60dcd46c9566722a4b11f7a9115efb9b9fb6a99
child 400579 b2893936478f7ac59692119bf37c13534e56f3de
permissions -rw-r--r--
Backed out changeset 1bc7102718a9 (bug 1207830) for test failures in ImageDecoders.JPGDownscaleDuringDecode

diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h
--- a/modules/fdlibm/src/math_private.h
+++ b/modules/fdlibm/src/math_private.h
@@ -33,16 +33,21 @@
  * to dig two 32 bit words out of the 64 bit IEEE floating point
  * value.  That is non-ANSI, and, moreover, the gcc instruction
  * scheduler gets it wrong.  We instead use the following macros.
  * Unlike the original code, we determine the endianness at compile
  * time, not at run time; I don't see much benefit to selecting
  * endianness at run time.
  */
 
+#ifdef WIN32
+#define u_int32_t uint32_t
+#define u_int64_t uint64_t
+#endif
+
 /*
  * A union which permits us to convert between a double and two 32 bit
  * ints.
  */
 
 #if MOZ_BIG_ENDIAN
 
 typedef union