Reviewed by Darin.
* wtf/MathExtras.h: Removed an unused header, and a now-unused
forward-declaration.
(wtf_atan2): Use std::numeric_limits intead of KJS.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27614
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-08 Adam Roben <aroben@apple.com>
+
+ Stop using KJS inside of MathExtras.h
+
+ Reviewed by Darin.
+
+ * wtf/MathExtras.h: Removed an unused header, and a now-unused
+ forward-declaration.
+ (wtf_atan2): Use std::numeric_limits intead of KJS.
+
2007-11-08 Sam Weinig <sam@webkit.org>
Windows build fix.
#if COMPILER(MSVC)
-#include "kjs/operations.h"
#include <xmath.h>
#include <limits>
#include <float.h>
#endif
-namespace KJS {
- extern const double NaN;
-}
-
#endif
#ifndef M_PI
{
static double posInf = std::numeric_limits<double>::infinity();
static double negInf = -std::numeric_limits<double>::infinity();
+ static double nan = std::numeric_limits<double>::quiet_NaN();
- double result = KJS::NaN;
+ double result = nan;
if (x == posInf && y == posInf)
result = piOverFourDouble;