From e418ea03e263a7797f55a753c759ef5a6eaab14d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 23 Jun 2019 11:37:46 +0800 Subject: [PATCH] Move __USE_W32_SOCKETS to its place From boost.asio documentation: > The following platforms may also work: > Win32 using Cygwin. (__USE_W32_SOCKETS must be defined.) --- winconf.pri | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winconf.pri b/winconf.pri index dd5dfe318..b378024ef 100644 --- a/winconf.pri +++ b/winconf.pri @@ -13,7 +13,6 @@ DEFINES += _WIN32 DEFINES += WIN32_LEAN_AND_MEAN DEFINES += _CRT_SECURE_NO_DEPRECATE DEFINES += _SCL_SECURE_NO_DEPRECATE -DEFINES += __USE_W32_SOCKETS DEFINES += _FILE_OFFSET_BITS=64 DEFINES += NOMINMAX @@ -30,6 +29,7 @@ win32-g++* { QMAKE_LFLAGS -= -Wl,--dynamicbase } + DEFINES += __USE_W32_SOCKETS RC_FILE = qbittorrent_mingw.rc LIBS += libadvapi32 libshell32 libuser32 libole32 libwsock32 libws2_32