tests: Add haiku to get define test

This commit is contained in:
Dylan Baker 2017-11-20 16:58:11 -08:00
parent fc547ad05e
commit b56450f9b2
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ foreach lang : ['c', 'cpp']
elif host_system == 'cygwin'
d = cc.get_define('__CYGWIN__')
assert(d == '1', '__CYGWIN__ value is @0@ instead of 1'.format(d))
elif host_system == 'haiku'
d = cc.get_define('__HAIKU__')
assert(d == '1', '__HAIKU__ value is @0@ instead of 1'.format(d))
else
error('Please report a bug and help us improve support for this platform')
endif