forked from mirrors/gecko-dev
Bug 1350355 - fdlibm should provide definition for u_int32_t and u_int64_t. r=arai
--HG-- extra : rebase_source : ef6ae7b88fd98d8e6e7d37f5ebbb1b56f3c669ac
This commit is contained in:
parent
66934884d5
commit
19ea5cacf5
2 changed files with 7 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h
|
diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h
|
||||||
--- a/modules/fdlibm/src/math_private.h
|
--- a/modules/fdlibm/src/math_private.h
|
||||||
+++ b/modules/fdlibm/src/math_private.h
|
+++ b/modules/fdlibm/src/math_private.h
|
||||||
@@ -33,16 +33,21 @@
|
@@ -33,16 +33,23 @@
|
||||||
* to dig two 32 bit words out of the 64 bit IEEE floating point
|
* to dig two 32 bit words out of the 64 bit IEEE floating point
|
||||||
* value. That is non-ANSI, and, moreover, the gcc instruction
|
* value. That is non-ANSI, and, moreover, the gcc instruction
|
||||||
* scheduler gets it wrong. We instead use the following macros.
|
* scheduler gets it wrong. We instead use the following macros.
|
||||||
|
|
@ -10,8 +10,10 @@ diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private
|
||||||
* endianness at run time.
|
* endianness at run time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
+#ifdef WIN32
|
+#ifndef u_int32_t
|
||||||
+#define u_int32_t uint32_t
|
+#define u_int32_t uint32_t
|
||||||
|
+#endif
|
||||||
|
+#ifndef u_int64_t
|
||||||
+#define u_int64_t uint64_t
|
+#define u_int64_t uint64_t
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,10 @@
|
||||||
* endianness at run time.
|
* endianness at run time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifndef u_int32_t
|
||||||
#define u_int32_t uint32_t
|
#define u_int32_t uint32_t
|
||||||
|
#endif
|
||||||
|
#ifndef u_int64_t
|
||||||
#define u_int64_t uint64_t
|
#define u_int64_t uint64_t
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue