⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 84061 in webkit


Ignore:
Timestamp:
Apr 15, 2011, 5:26:36 PM (16 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-15 Fridrich Strba <​fridrich.strba@bluewin.ch>

Reviewed by Martin Robinson.

Expand the ntohs, ntohl, htons and htonl defines for OS(WINDOWS)
These have to be defined for Windows in general, since win32 API
does not provide them.
​https://bugs.webkit.org/show_bug.cgi?id=58582

  • platform/graphics/WOFFFileFormat.cpp:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84060 r84061  
     12011-04-15  Fridrich Strba  <fridrich.strba@bluewin.ch>
     2
     3        Reviewed by Martin Robinson.
     4
     5        Expand the ntohs, ntohl, htons and htonl defines for OS(WINDOWS)
     6        These have to be defined for Windows in general, since win32 API
     7        does not provide them.
     8        https://bugs.webkit.org/show_bug.cgi?id=58582
     9
     10        * platform/graphics/WOFFFileFormat.cpp:
     11
    1122011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>
    213
  • trunk/Source/WebCore/platform/graphics/WOFFFileFormat.cpp

    r81093 r84061  
    4444#endif
    4545
    46 #if PLATFORM(WIN)
     46#if OS(WINDOWS)
    4747#if CPU(BIG_ENDIAN)
    4848#define ntohs(x) ((uint16_t)(x))
    … …  
    6262#define htonl(x) ntohl(x)
    6363#endif
    64 #endif // PLATFORM(WIN)
     64#endif // OS(WINDOWS)
    6565
    6666namespace WebCore {
Note: See TracChangeset for help on using the changeset viewer.