Changeset 11768 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Dec 26, 2005, 2:08:52 PM (19 years ago)
Author:
hyatt
Message:

Fix win32 bustage. ifdef the swap function for std pairs.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/Makefile.vc

    r10517 r11768  
    44OBJDIR=obj
    55KJSDIR=kjs
     6KXMLCOREDIR=kxmlcore
    67PCREDIR=pcre
    78
    8 ICUDIR=$(BASEDIR)\..\..\icu
     9ICUDIR=$(BASEDIR)\..\icu
    910
    1011#
     
    2223CFLAGS = $(CFLAGS) /D "WIN32" /D "__STD_C"
    2324CFLAGS = $(CFLAGS) /D "_MBCS" /D "_REENTRANT" /EHsc /W1
     25CFLAGS = $(CFLAGS) /I$(BASEDIR)
     26CFLAGS = $(CFLAGS) /I$(KXMLCOREDIR)
    2427CFLAGS = $(CFLAGS) /I$(BASEDIR)\os-win32
    2528CFLAGS = $(CFLAGS) /I$(BASEDIR)\pcre
     
    5760AR       = lib.exe
    5861ARFLAGS  = $(ARFLAGS) /nologo
    59 
    60 PCRE_OBJS=\
    61     $(OBJDIR)\pcre.obj \
    62     $(NULL)
    6362
    6463#
  • trunk/JavaScriptCore/kxmlcore/HashTable.h

    r11762 r11768  
    175175    using std::swap;
    176176
    177     // swap pairs by component, in case of pair members that specialize swap
     177#ifndef WIN32
     178    // Visual C++ has a swap for pairs defined.
     179        // swap pairs by component, in case of pair members that specialize swap
    178180    template<typename T, typename U>
    179181    inline void swap(pair<T, U>& a, pair<T, U>& b)
     
    182184        swap(a.second, b.second);
    183185    }
     186#endif
    184187
    185188    template<typename T, bool useSwap>
Note: See TracChangeset for help on using the changeset viewer.