Project

General

Profile

Actions

Bug #18359

open

[Windows MinGW] warning Please include winsock2.h before windows.h

Added by MSP-Greg (Greg L) 2 months ago. Updated 2 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.0dev (2021-11-23T07:08:53Z master a88b19d3d0) [x64-mingw32]
[ruby-core:106223]

Description

Compile warning from include/ruby/win32.h? Appears with both MINGW64 & UCRT64 builds.

In file included from D:/ruby-mingw/include/ruby-3.1.0/ruby/win32.h:41,
                 from D:/ruby-mingw/include/ruby-3.1.0/ruby/internal/dosish.h:38,
                 from D:/ruby-mingw/include/ruby-3.1.0/ruby/defines.h:78,
                 from D:/ruby-mingw/include/ruby-3.1.0/ruby/ruby.h:25,
                 from D:/ruby-mingw/include/ruby-3.1.0/ruby.h:38,
                 from ../../../../ext/nokogiri/nokogiri.h:68,
                 from ../../../../ext/nokogiri/gumbo.c:30:
C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
   15 | #warning Please include winsock2.h before windows.h
      |  ^~~~~~~

Updated by MSP-Greg (Greg L) 2 months ago

Sorry. Same warning for all versions back to 2.5.

Actions

Also available in: Atom PDF