Changeset 44866 in webkit


Ignore:
Timestamp:
Jun 19, 2009 1:09:47 PM (15 years ago)
Author:
treat@webkit.org
Message:

2009-06-19 Yong Li <yong.li@torchmobile.com>

Reviewed by George Staikos.

https://bugs.webkit.org/show_bug.cgi?id=26558
Declare these symbols extern for WINCE as they are provided by libce.

  • runtime/DateConstructor.cpp:
  • runtime/DatePrototype.cpp: (JSC::formatLocaleDate):
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r44862 r44866  
     12009-06-19  Yong Li  <yong.li@torchmobile.com>
     2
     3        Reviewed by George Staikos.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=26558
     6        Declare these symbols extern for WINCE as they are provided by libce.
     7
     8        * runtime/DateConstructor.cpp:
     9        * runtime/DatePrototype.cpp:
     10        (JSC::formatLocaleDate):
     11
    1122009-06-19  Oliver Hunt  <oliver@apple.com>
    213
  • trunk/JavaScriptCore/runtime/DateConstructor.cpp

    r44509 r44866  
    3535#include <wtf/DateMath.h>
    3636#include <wtf/MathExtras.h>
     37
     38#if PLATFORM(WINCE) && !PLATFORM(QT)
     39extern "C" time_t time(time_t* timer); //provided by libce
     40#endif
    3741
    3842#if HAVE(SYS_TIME_H)
  • trunk/JavaScriptCore/runtime/DatePrototype.cpp

    r44508 r44866  
    22 *  Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
    33 *  Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
     4 *  Copyright (C) 2008, 2009 Torch Mobile, Inc. All rights reserved.
    45 *
    56 *  This library is free software; you can redistribute it and/or
     
    5859#if PLATFORM(MAC)
    5960#include <CoreFoundation/CoreFoundation.h>
     61#endif
     62
     63#if PLATFORM(WINCE) && !PLATFORM(QT)
     64extern "C" size_t strftime(char * const s, const size_t maxsize, const char * const format, const struct tm * const t); //provided by libce
    6065#endif
    6166
     
    191196#if HAVE(LANGINFO_H)
    192197    static const nl_item formats[] = { D_T_FMT, D_FMT, T_FMT };
     198#elif PLATFORM(WINCE) && !PLATFORM(QT)
     199    // strftime() we are using does not support #
     200    static const char* const formatStrings[] = { "%c", "%x", "%X" };
    193201#else
    194202    static const char* const formatStrings[] = { "%#c", "%#x", "%X" };
Note: See TracChangeset for help on using the changeset viewer.