fix for cygwin warning in winsock.h about sys/types.h from Dimitri
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,7 +26,13 @@
|
|||||||
#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
|
#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#ifndef __WXMAC__
|
|
||||||
|
/*
|
||||||
|
Including sys/types.h under cygwin results in the warnings about "fd_set
|
||||||
|
having been defined in sys/types.h" when winsock.h is included later and
|
||||||
|
doesn't seem to be necessary anyhow. It's not needed under Mac neither.
|
||||||
|
*/
|
||||||
|
#if !defined(__WXMAC__) && !defined(__CYGWIN__)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user