diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-06-03 23:57:20 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-06-03 23:57:20 +0300 |
commit | 2fdc7c7dbc5ac046416f1148856b38f6439df74f (patch) | |
tree | e5448dbe73e282adf5d8f9169b9d687a613ce202 /test cases/common | |
parent | aa38b1859fbbded725eac001b077b4230fb6332e (diff) | |
download | meson-2fdc7c7dbc5ac046416f1148856b38f6439df74f.zip meson-2fdc7c7dbc5ac046416f1148856b38f6439df74f.tar.gz meson-2fdc7c7dbc5ac046416f1148856b38f6439df74f.tar.bz2 |
Added has_header method.
Diffstat (limited to 'test cases/common')
-rw-r--r-- | test cases/common/37 has header/meson.build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/common/37 has header/meson.build b/test cases/common/37 has header/meson.build new file mode 100644 index 0000000..bbfce6d --- /dev/null +++ b/test cases/common/37 has header/meson.build @@ -0,0 +1,11 @@ +project('has header', 'c') + +cc = meson.get_compiler('c') + +if cc.has_header('stdio.h') == false + error('Stdio missing.') +endif + +if cc.has_header('ouagadougou.h') + error('Found non-existant header.') +endif |