Skip to content

Commit

Permalink
meson: improve WINE header check
Browse files Browse the repository at this point in the history
Stop checking for WINE's debug.h now that we're not using it anymore.
Instead check for the WINE specific symbol wine_get_unix_file_name().
  • Loading branch information
dhewg committed Apr 15, 2019
1 parent c85f4a5 commit 2968085
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ endif

dep_wine = cc.find_library('wine')

foreach h : ['wine/debug.h']
if not cc.has_header(h, dependencies : dep_wine)
error('WINE headers not found')
endif
endforeach
if not cc.has_header_symbol('windows.h', 'wine_get_unix_file_name')
error('WINE headers not found')
endif

version = meson.project_version().split('-')[0].split('.')
wrc = [
Expand Down

0 comments on commit 2968085

Please sign in to comment.