don't include winsock.h directly, this doesn't work (patch 565655)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Jun 2002 21:00:19 +0000 (21:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Jun 2002 21:00:19 +0000 (21:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/utils.cpp

index 707c1d4664cb6da77bd7367b5814f1e6888ce172..24199aca274a573d5ceebc68b6b2b31c0b93fa0e 100644 (file)
 #endif
 #endif  //WX_PRECOMP
 
-// In some mingws there is a missing extern "C" int the winsock header,
-// so we put it here just to be safe. Note that this must appear _before_
-// #include "wx/msw/private.h" which itself includes <windows.h>, as this
-// one in turn includes <winsock.h> unless we define WIN32_LEAN_AND_MEAN.
-//
-#if defined(__WIN32__) && !defined(__TWIN32__) && !defined(__WXMICROWIN__) && ! (defined(__GNUWIN32__) && !defined(__MINGW32__))
-extern "C" {
-    #include <winsock.h>    // we use socket functions in wxGetFullHostName()
-}
-#endif
-
 #include "wx/msw/private.h"     // includes <windows.h>
 
 #include "wx/timer.h"