Ignore:
Timestamp:
Oct 14, 2007, 4:55:02 AM (18 years ago)
Author:
bdash
Message:

2007-10-14 Kevin Ollivier <[email protected]>

Reviewed by Adam.

Add support for MSVC7, and fix cases where PLATFORM(WIN) should
be PLATFORM(WIN_OS) for other ports building on Windows.

  • dom/XMLTokenizer.cpp:
  • page/FrameTree.cpp:
  • platform/StaticConstructors.h:
  • platform/String.cpp:

2007-10-5 Kevin Ollivier <[email protected]>

Reviewed by Adam.


Add support for MSVC7, and fix cases where PLATFORM(WIN) should
be PLATFORM(WIN_OS) for other ports building on Windows.


  • kjs/DateMath.cpp: (KJS::getDSTOffsetSimple):
  • kjs/JSImmediate.h:
  • wtf/Assertions.cpp:
  • wtf/Assertions.h:
  • wtf/Platform.h:
  • wtf/StringExtras.h: (snprintf): (vsnprintf):
File:
1 edited

Legend:

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

    r21906 r26589  
    3636   For non-debug builds, everything is disabled by default.
    3737   Defining any of the symbols explicitly prevents this from having any effect.
     38   
     39   MSVC7 note: variadic macro support was added in MSVC8, so for now we disable
     40   those macros in MSVC7. For more info, see the MSDN document on variadic
     41   macros here:
     42   
     43   http://msdn2.microsoft.com/en-us/library/ms177415(VS.80).aspx
    3844*/
    3945
     
    131137    } \
    132138while (0)
     139#if COMPILER(MSVC7)
     140#define ASSERT_WITH_MESSAGE(assertion) ((void)0)
     141#else
    133142#define ASSERT_WITH_MESSAGE(assertion, ...) do \
    134143    if (!(assertion)) { \
     
    137146    } \
    138147while (0)
     148#endif // COMPILER(MSVC7)
    139149#define ASSERT_NOT_REACHED() do { \
    140150    WTFReportAssertionFailure(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, 0); \
     
    170180#if FATAL_DISABLED
    171181#define FATAL(...) ((void)0)
     182#elif COMPILER(MSVC7)
     183#define FATAL() ((void)0)
    172184#else
    173185#define FATAL(...) do { \
     
    181193#if ERROR_DISABLED
    182194#define LOG_ERROR(...) ((void)0)
     195#elif COMPILER(MSVC7)
     196#define LOG_ERROR() ((void)0)
    183197#else
    184198#define LOG_ERROR(...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, __VA_ARGS__)
     
    189203#if LOG_DISABLED
    190204#define LOG(channel, ...) ((void)0)
     205#elif COMPILER(MSVC7)
     206#define LOG() ((void)0)
    191207#else
    192208#define LOG(channel, ...) WTFLog(&JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, channel), __VA_ARGS__)
     
    199215#if LOG_DISABLED
    200216#define LOG_VERBOSE(channel, ...) ((void)0)
     217#elif COMPILER(MSVC7)
     218#define LOG_VERBOSE(channel) ((void)0)
    201219#else
    202220#define LOG_VERBOSE(channel, ...) WTFLogVerbose(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, &JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, channel), __VA_ARGS__)
Note: See TracChangeset for help on using the changeset viewer.