Author: cazfi Date: Sun Jan 3 17:35:20 2016 New Revision: 31337 URL: http://svn.gna.org/viewcvs/freeciv?rev=31337&view=rev Log: Include <winsock2.h>, not <ws2tcpip.h> to fcthread.h
See patch #6769 Modified: trunk/utility/fcthread.h Modified: trunk/utility/fcthread.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/utility/fcthread.h?rev=31337&r1=31336&r2=31337&view=diff ============================================================================== --- trunk/utility/fcthread.h (original) +++ trunk/utility/fcthread.h Sun Jan 3 17:35:20 2016 @@ -24,11 +24,15 @@ /* utility */ #include "support.h" /* bool */ -/* No way needed by threading, but if the one including us will ever need it, it can't be included - * after we have included <windows.h> directly or indirectly. */ -#ifdef HAVE_WS2TCPIP_H -#include <ws2tcpip.h> -#endif +/* No way needed by threading, but if the one including us will ever need it, + * it can't be included after we have included <windows.h> directly or indirectly. */ +#ifdef FREECIV_HAVE_WINSOCK +#ifdef FREECIV_HAVE_WINSOCK2 +#include <winsock2.h> +#else /* FREECIV_HAVE_WINSOCK2 */ +#include <winsock.h> +#endif /* FREECIV_HAVE_WINSOCK2 */ +#endif /* FREECIV_HAVE_WINSOCK */ #ifdef FREECIV_HAVE_TINYCTHR #include "tinycthread.h" _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits