Skip to content

Commit

Permalink
win32: add ntdll as build dependency
Browse files Browse the repository at this point in the history
NtSetTimerResolution() requires ntdll to be explicitly linked.
  • Loading branch information
na-na-hi authored and kasper93 committed Oct 28, 2023
1 parent 669f6a1 commit b6d3ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,11 @@ if features['win32-desktop']
win32_desktop_libs = [cc.find_library('avrt'),
cc.find_library('dwmapi'),
cc.find_library('gdi32'),
cc.find_library('ntdll'),
cc.find_library('ole32'),
cc.find_library('uuid'),
cc.find_library('uxtheme'),
cc.find_library('version'),
cc.find_library('winmm')]
cc.find_library('version')]
dependencies += win32_desktop_libs
path_source = files('osdep/path-win.c')
subprocess_source = files('osdep/subprocess-win.c')
Expand Down
2 changes: 1 addition & 1 deletion test/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ else
endif

if features['win32-desktop']
test_utils_deps += cc.find_library('winmm')
test_utils_deps += cc.find_library('ntdll')
endif
test_utils_objects = libmpv.extract_objects(test_utils_files)
test_utils = static_library('test-utils', 'test_utils.c', include_directories: incdir,
Expand Down

0 comments on commit b6d3ecf

Please sign in to comment.