Fix warning on CYGWIN for sockets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,6 +43,12 @@
|
|||||||
|
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
|
#if defined(__CYGWIN__)
|
||||||
|
//CYGWIN gives annoying warning about runtime stuff if we don't do this
|
||||||
|
# define USE_SYS_TYPES_FD_SET
|
||||||
|
# include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <winsock.h>
|
#include <winsock.h>
|
||||||
|
|
||||||
#ifndef __GSOCKET_STANDALONE__
|
#ifndef __GSOCKET_STANDALONE__
|
||||||
|
@@ -40,6 +40,12 @@
|
|||||||
#include "wx/msw/private.h" // includes <windows.h>
|
#include "wx/msw/private.h" // includes <windows.h>
|
||||||
#include "wx/msw/missing.h" // CHARSET_HANGUL
|
#include "wx/msw/missing.h" // CHARSET_HANGUL
|
||||||
|
|
||||||
|
#if defined(__CYGWIN__)
|
||||||
|
//CYGWIN gives annoying warning about runtime stuff if we don't do this
|
||||||
|
# define USE_SYS_TYPES_FD_SET
|
||||||
|
# include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// Doesn't work with Cygwin at present
|
// Doesn't work with Cygwin at present
|
||||||
#if wxUSE_SOCKETS && (defined(__GNUWIN32_OLD__) || defined(__WXWINCE__) || defined(__CYGWIN32__))
|
#if wxUSE_SOCKETS && (defined(__GNUWIN32_OLD__) || defined(__WXWINCE__) || defined(__CYGWIN32__))
|
||||||
// apparently we need to include winsock.h to get WSADATA and other stuff
|
// apparently we need to include winsock.h to get WSADATA and other stuff
|
||||||
|
Reference in New Issue
Block a user