Ignore:
Timestamp:
Sep 22, 2009, 5:59:42 AM (16 years ago)
Author:
Simon Hausmann
Message:

Fix compilation with WINSCW: no varargs macros

Patch by Thiago Macieira <[email protected]> on 2009-09-22
Reviewed by Simon Hausmann.

Disable variadic arguments for WINSCW just like we do
for MSVC7.

  • wtf/Assertions.h:
File:
1 edited

Legend:

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

    r48629 r48630  
    145145
    146146#define ASSERT(assertion) ((void)0)
    147 #if COMPILER(MSVC7)
     147#if COMPILER(MSVC7) || COMPILER(WINSCW)
    148148#define ASSERT_WITH_MESSAGE(assertion) ((void)0)
    149149#else
     
    161161    } \
    162162while (0)
    163 #if COMPILER(MSVC7)
     163#if COMPILER(MSVC7) || COMPILER(WINSCW)
    164164#define ASSERT_WITH_MESSAGE(assertion) ((void)0)
    165165#else
     
    204204/* FATAL */
    205205
    206 #if FATAL_DISABLED && !COMPILER(MSVC7)
     206#if FATAL_DISABLED && !COMPILER(MSVC7) && !COMPILER(WINSCW)
    207207#define FATAL(...) ((void)0)
    208208#elif COMPILER(MSVC7)
     
    217217/* LOG_ERROR */
    218218
    219 #if ERROR_DISABLED && !COMPILER(MSVC7)
     219#if ERROR_DISABLED && !COMPILER(MSVC7) && !COMPILER(WINSCW)
    220220#define LOG_ERROR(...) ((void)0)
    221 #elif COMPILER(MSVC7)
     221#elif COMPILER(MSVC7) || COMPILER(WINSCW)
    222222#define LOG_ERROR() ((void)0)
    223223#else
     
    227227/* LOG */
    228228
    229 #if LOG_DISABLED && !COMPILER(MSVC7)
     229#if LOG_DISABLED && !COMPILER(MSVC7) && !COMPILER(WINSCW)
    230230#define LOG(channel, ...) ((void)0)
    231 #elif COMPILER(MSVC7)
     231#elif COMPILER(MSVC7) || COMPILER(WINSCW)
    232232#define LOG() ((void)0)
    233233#else
     
    239239/* LOG_VERBOSE */
    240240
    241 #if LOG_DISABLED && !COMPILER(MSVC7)
     241#if LOG_DISABLED && !COMPILER(MSVC7) && !COMPILER(WINSCW)
    242242#define LOG_VERBOSE(channel, ...) ((void)0)
    243 #elif COMPILER(MSVC7)
     243#elif COMPILER(MSVC7) || COMPILER(WINSCW)
    244244#define LOG_VERBOSE(channel) ((void)0)
    245245#else
Note: See TracChangeset for help on using the changeset viewer.