Changeset 45972 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
Jul 16, 2009, 7:13:46 AM (16 years ago)
Author:
[email protected]
Message:

2009-07-16 Yong Li <[email protected]>

Reviewed by George Staikos.

https://bugs.webkit.org/show_bug.cgi?id=27320
_countof is only included in CE6; for CE5 we need to define it ourself

  • wtf/Platform.h:
File:
1 edited

Legend:

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

    r45927 r45972  
    360360#define assert(x)
    361361
    362 #endif
     362// _countof is only included in CE6; for CE5 we need to define it ourself
     363#ifndef _countof
     364#define _countof(x) (sizeof(x) / sizeof((x)[0]))
     365#endif
     366
     367#endif  // PLATFORM(WINCE) && !PLATFORM(QT)
    363368
    364369/* for Unicode, KDE uses Qt */
Note: See TracChangeset for help on using the changeset viewer.