Changeset 17856 in webkit for trunk/JavaScriptCore/kjs/config.h


Ignore:
Timestamp:
Nov 20, 2006, 4:59:36 AM (19 years ago)
Author:
bdash
Message:

2006-11-20 Samuel Weinig <[email protected]>

Reviewed by Maciej.

Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
Fix Win32 build

  • kjs/config.h: define NOMINMAX instead of min/max as themselves.
  • wtf/Vector.h: put back hack to ensure that min/max are not defined as macros.

2006-11-20 Samuel Weinig <[email protected]>

Reviewed by Maciej.

Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
Fix Win32 build

  • config.h: add #define NOMINMAX for windows build
  • platform/win/FontCacheWin.cpp: (WebCore::FontCache::createFontPlatformData):
  • platform/win/TemporaryLinkStubs.cpp: add definitions for new cursors. (WebCore::aliasCursor): (WebCore::noDropCursor): (WebCore::progressCursor):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/config.h

    r17837 r17856  
     1/*
     2 * Copyright (C) 2006 Apple Computer, Inc.
     3 * Copyright (C) 2006 Samuel Weinig <[email protected]>
     4 *
     5 * This library is free software; you can redistribute it and/or
     6 * modify it under the terms of the GNU Library General Public
     7 * License as published by the Free Software Foundation; either
     8 * version 2 of the License, or (at your option) any later version.
     9 *
     10 * This library is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13 * Library General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU Library General Public License
     16 * along with this library; see the file COPYING.LIB.  If not, write to
     17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
     18 * Boston, MA 02111-1307, USA.
     19 *
     20 */
     21
    122#include <wtf/Platform.h>
    223
     
    1536#elif PLATFORM(WIN_OS)
    1637
    17 // If we don't define these, they get defined in windef.h.
    18 // We want to use std::min and std::max
    19 #define max max
    20 #define min min
     38// We need to define this in order to use the numeric limit
     39// values provided by the C++ standard library.
     40#define NOMINMAX
    2141
    2242#define HAVE_FLOAT_H 1
    2343#define HAVE_FUNC__FINITE 1
    2444#define HAVE_SYS_TIMEB_H 1
    25 
    2645
    2746#define USE_SYSTEM_MALLOC 1
Note: See TracChangeset for help on using the changeset viewer.