Skip to content

Commit

Permalink
Raise minimum support to Windows 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Aug 4, 2019
1 parent c0fc4e6 commit 2f0ae7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
9 changes: 5 additions & 4 deletions cmake/Modules/winconf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ set(LibtorrentRasterbar_CUSTOM_BOOST_DEPENDENCIES system)
#set(Boost_USE_STATIC_LIBS True)
#set(Boost_USE_STATIC_RUNTIME True)

add_definitions(-DUNICODE
add_definitions(
-DNTDDI_VERSION=0x06010000
-D_WIN32_WINNT=0x0601
-D_WIN32_IE=0x0601
-DUNICODE
-D_UNICODE
-DWIN32
-D_WIN32
-DWIN32_LEAN_AND_MEAN
-DNTDDI_VERSION=0x05010000
-D_WIN32_WINNT=0x0501
-D_WIN32_IE=0x0501
-D_CRT_SECURE_NO_DEPRECATE
-D_SCL_SECURE_NO_DEPRECATE
-DNOMINMAX
Expand Down
6 changes: 0 additions & 6 deletions conf.pri.windows
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,11 @@ LIBS += zlib.lib
#LIBS += libcrypto libssl
#LIBS += libz

DEFINES += NTDDI_VERSION=0x05010000
DEFINES += _WIN32_WINNT=0x0501
DEFINES += _WIN32_IE=0x0501

# Disable to use Boost auto-linking
DEFINES += BOOST_ALL_NO_LIB
# Use one of the following options
DEFINES += BOOST_SYSTEM_STATIC_LINK
#DEFINES += BOOST_SYSTEM_DYN_LINK
# Boost 1.60+ defaults to Vista+ support. The define below enables XP support again.
DEFINES += BOOST_USE_WINAPI_VERSION=0x0501
# Enable if encountered build error with boost version <= 1.59
#DEFINES += BOOST_NO_CXX11_RVALUE_REFERENCES

Expand Down
3 changes: 3 additions & 0 deletions winconf.pri
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ DEFINES += BOOST_EXCEPTION_DISABLE
DEFINES += TORRENT_USE_OPENSSL
DEFINES += TORRENT_DISABLE_RESOLVE_COUNTRIES

DEFINES += NTDDI_VERSION=0x06010000
DEFINES += _WIN32_WINNT=0x0601
DEFINES += _WIN32_IE=0x0601
DEFINES += UNICODE
DEFINES += _UNICODE
DEFINES += WIN32
Expand Down

0 comments on commit 2f0ae7a

Please sign in to comment.