The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
305 B
12 lines
305 B
12 years ago
|
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
|