Issue #18359 has been updated by MSP-Greg (Greg L).


Sorry. Same warning for all versions back to 2.5.

----------------------------------------
Bug #18359: [Windows MinGW] warning Please include winsock2.h before windows.h
https://bugs.ruby-lang.org/issues/18359#change-94835

* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.0dev (2021-11-23T07:08:53Z master a88b19d3d0) [x64-mingw32]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
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
      |  ^~~~~~~
```




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>