diff options
author | FeralChild64 <unknown> | 2022-10-12 13:45:03 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2022-10-22 21:15:34 +0300 |
commit | 8dbfbf9e7a6c9ef4ad476967a2d705731457ecc6 (patch) | |
tree | b8bb323abf850cc11fa591a0514946b52497fd1f /meson.build | |
parent | ec9df4708b60715772d1322d7de42eb8e4c67459 (diff) |
Handle code review remarks
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meson.build b/meson.build index cc0ea267a..23440a1ff 100644 --- a/meson.build +++ b/meson.build @@ -529,13 +529,6 @@ coreaudio_dep = optional_dep coremidi_dep = optional_dep corefoundation_dep = optional_dep iokit_dep = optional_dep -iokit_code = ''' -#include <IOKit/hid/IOHIDLib.h> -int main() { - dispatch_block_t test_var; - return 0; -} -''' if host_machine.system() == 'darwin' # ObjectiveC parsing, if possible @@ -585,6 +578,13 @@ if host_machine.system() == 'darwin' ) if iokit_dep.found() if cxx.check_header('IOKit/IOKitLib.h') + iokit_code = ''' + #include <IOKit/hid/IOHIDLib.h> + int main() { + dispatch_block_t test_var; + return 0; + } + ''' is_iokit_compilable = cxx.links( iokit_code, name: 'compiler is capable of compiling IOKit', |