meson.build 264 B

123456789101112
  1. project('has type', 'c')
  2. cc = meson.get_compiler('c')
  3. if not cc.has_type('time_t', prefix : '#include<time.h>')
  4. error('Did not detect type that exists.')
  5. endif
  6. if cc.has_type('no_time_t', prefix : '#include<time.h>')
  7. error('Not existing type found.')
  8. endif