Changeset 58308 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Apr 27, 2010, 6:56:53 AM (15 years ago)
Author:
[email protected]
Message:

Compile fix for Visual Studio 2010
https://bugs.webkit.org/show_bug.cgi?id=37867

Reviewed by Simon Hausmann.

Patch by Prasanth Ullattil <[email protected]>

  • runtime/Structure.cpp:

(JSC::Structure::transitionTableAdd):

  • wtf/MathExtras.h:
  • wtf/Platform.h:
Location:
trunk/JavaScriptCore/wtf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/MathExtras.h

    r58167 r58308  
    123123
    124124#if COMPILER(MSVC)
    125 
     125// The 64bit version of abs() is already defined in stdlib.h which comes with VC10
     126#if COMPILER(MSVC9_OR_LOWER)
    126127inline long long abs(long long num) { return _abs64(num); }
     128#endif
    127129
    128130inline bool isinf(double num) { return !_finite(num) && !_isnan(num); }
  • trunk/JavaScriptCore/wtf/Platform.h

    r58307 r58308  
    6060/* COMPILER(MSVC) Microsoft Visual C++ */
    6161/* COMPILER(MSVC7_OR_LOWER) Microsoft Visual C++ 2003 or lower*/
     62/* COMPILER(MSVC9_OR_LOWER) Microsoft Visual C++ 2008 or lower*/
    6263#if defined(_MSC_VER)
    6364#define WTF_COMPILER_MSVC 1
    6465#if _MSC_VER < 1400
    6566#define WTF_COMPILER_MSVC7_OR_LOWER 1
     67#elif _MSC_VER < 1600
     68#define WTF_COMPILER_MSVC9_OR_LOWER 1
    6669#endif
    6770#endif
Note: See TracChangeset for help on using the changeset viewer.