1234567891011121314 |
- project('has type', 'c', 'cpp')
- compilers = [meson.get_compiler('c'), meson.get_compiler('cpp')]
- foreach cc : compilers
- 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
- endforeach
|