parent
0ba1d545af
commit
46804d4fe6
3 changed files with 36 additions and 0 deletions
@ -0,0 +1,11 @@ |
||||
project('has type', 'c') |
||||
|
||||
cc = meson.get_compiler('c') |
||||
|
||||
if not cc.has_type('time_t', prefix : '#include<time.h>') |
||||
error('Did not detect type that exists.') |
||||
endif |
||||
|
||||
if cc.has_type('no_time_t', prefix : '#include<time.h>') |
||||
error('Not existing type found.') |
||||
endif |
Loading…
Reference in new issue