[Webkit-unassigned] [Bug 247156] New: [WinCairo][32bit] wtf/ByteOrder.h(56): error C2373: 'ntohs': redefinition; different type modifiers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 27 17:10:57 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=247156

            Bug ID: 247156
           Summary: [WinCairo][32bit] wtf/ByteOrder.h(56): error C2373:
                    'ntohs': redefinition; different type modifiers
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com

[WinCairo][32bit] wtf/ByteOrder.h(56): error C2373: 'ntohs': redefinition; different type modifiers

"perl .\Tools\Scripts\build-webkit --wincairo --32-bit" reports the following compilation error.

> C:\home\webkit\gc\WebKitBuild\Release\WTF\Headers\wtf/ByteOrder.h(56): error C2373: 'ntohs': redefinition; different type modifiers
> C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winsock2.h(1985): note: see declaration of 'ntohs'
> C:\home\webkit\gc\WebKitBuild\Release\WTF\Headers\wtf/ByteOrder.h(56): error C2491: 'ntohs': definition of dllimport function not allowed
> C:\home\webkit\gc\WebKitBuild\Release\WTF\Headers\wtf/ByteOrder.h(57): error C2373: 'htons': redefinition; different type modifiers
> C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winsock2.h(1813): note: see declaration of 'htons'
> C:\home\webkit\gc\WebKitBuild\Release\WTF\Headers\wtf/ByteOrder.h(57): error C2491: 'htons': definition of dllimport function not allowed

JavaScriptCore/inspector/remote/socket/RemoteInspectorSocket.h has #include <winsock2.h>.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221028/f2a3bda6/attachment.htm>


More information about the webkit-unassigned mailing list