Revision: 16314
Author: [email protected]
Date: Mon Aug 26 08:17:38 2013 UTC
Log: Further cleanup of test for V8_INFINITY.
[email protected]
Review URL: https://codereview.chromium.org/23202017
http://code.google.com/p/v8/source/detail?r=16314
Modified:
/branches/bleeding_edge/src/globals.h
=======================================
--- /branches/bleeding_edge/src/globals.h Fri Aug 23 08:22:07 2013 UTC
+++ /branches/bleeding_edge/src/globals.h Mon Aug 26 08:17:38 2013 UTC
@@ -30,19 +30,14 @@
#include "../include/v8stdint.h"
-// Find a working V8_INFINITY.
-#if V8_CC_GNU
// Unfortunately, the INFINITY macro cannot be used with the '-pedantic'
// warning flag and certain versions of GCC due to a bug:
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11931
// For now, we use the more involved template-based version from <limits>,
but
// only when compiling with GCC versions affected by the bug (2.96.x -
4.0.x)
-# if V8_GNUC_PREREQ(2, 96, 0) && !V8_GNUC_PREREQ(4, 1, 0)
-# include <limits> // NOLINT
-# define V8_INFINITY std::numeric_limits<double>::infinity()
-# else
-# define V8_INFINITY INFINITY
-# endif
+#if V8_CC_GNU && V8_GNUC_PREREQ(2, 96, 0) && !V8_GNUC_PREREQ(4, 1, 0)
+# include <limits> // NOLINT
+# define V8_INFINITY std::numeric_limits<double>::infinity()
#elif V8_CC_MSVC
# define V8_INFINITY HUGE_VAL
#else
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.