Changeset 54388 in webkit
- Timestamp:
- Feb 4, 2010 5:01:45 PM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r54362 r54388 1 2010-02-04 Darin Adler <darin@apple.com> 2 3 Reviewed by David Levin. 4 5 Make MathExtras.h compatible with <cmath> 6 https://bugs.webkit.org/show_bug.cgi?id=34618 7 8 * wtf/MathExtras.h: Include <cmath> instead of <math.h>. 9 Use "using" as we do elsewhere in WTF for the four functions from <cmath> 10 we want to use without the prefix. Later we could consider making the std 11 explicit at call sites instead. 12 1 13 2010-02-04 Tamas Szirbucz <szirbucz@inf.u-szeged.hu> 2 14 -
trunk/JavaScriptCore/wtf/MathExtras.h
r54121 r54388 1 1 /* 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 27 27 #define WTF_MathExtras_h 28 28 29 #include <cmath> 29 30 #include <float.h> 30 #include <math.h>31 31 #include <stdlib.h> 32 32 … … 187 187 inline float grad2rad(float g) { return g * piFloat / 200.0f; } 188 188 189 using std::isfinite; 190 using std::isinf; 191 using std::isnan; 192 using std::signbit; 193 189 194 #endif // #ifndef WTF_MathExtras_h
Note: See TracChangeset
for help on using the changeset viewer.