Skip to content

Commit 5958585

Browse files
committed
Add NTDDI_VERSION define
1 parent 9eb01fb commit 5958585

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

cmake/Modules/winconf.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# We want to link with static version of
44
# libtorrent
55
set(LibtorrentRasterbar_USE_STATIC_LIBS True)
6-
set(LibtorrentRasterbar_CUSTOM_DEFINITIONS
6+
set(LibtorrentRasterbar_CUSTOM_DEFINITIONS
77
-DBOOST_ALL_NO_LIB -DBOOST_ASIO_HASH_MAP_BUCKETS=1021
88
-DBOOST_ASIO_SEPARATE_COMPILATION
99
-DBOOST_EXCEPTION_DISABLE
@@ -17,6 +17,7 @@ add_definitions(-DUNICODE
1717
-DWIN32
1818
-D_WIN32
1919
-DWIN32_LEAN_AND_MEAN
20+
-DNTDDI_VERSION=0x0501
2021
-D_WIN32_WINNT=0x0501
2122
-D_WIN32_IE=0x0500
2223
-D_CRT_SECURE_NO_DEPRECATE

winconf.pri

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ DEFINES += _UNICODE
3737
DEFINES += WIN32
3838
DEFINES += _WIN32
3939
DEFINES += WIN32_LEAN_AND_MEAN
40+
DEFINES += NTDDI_VERSION=0x0501
4041
DEFINES += _WIN32_WINNT=0x0501
4142
DEFINES += _WIN32_IE=0x0501
4243
DEFINES += _CRT_SECURE_NO_DEPRECATE

0 commit comments

Comments
 (0)