parent
6ba724c5c7
commit
44c0e22330
3 changed files with 44 additions and 0 deletions
@ -0,0 +1,11 @@ |
||||
project('has member', 'c') |
||||
|
||||
cc = meson.get_compiler('c') |
||||
|
||||
if not cc.has_member('struct tm', 'tm_sec', prefix : '#include<time.h>') |
||||
error('Did not detect member that exists.') |
||||
endif |
||||
|
||||
if cc.has_member('struct tm', 'tm_nonexistent', prefix : '#include<time.h>') |
||||
error('Not existing member found.') |
||||
endif |
Loading…
Reference in new issue