123456789101112 |
- 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
|