diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-02 09:55:54 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-02 09:55:54 +0300 |
commit | f5f2ddde7e4a63ed9cc9eef0214f95c26c24c6da (patch) | |
tree | 22ea9a02101dc4d3323ed0bec99c8267b0b211c1 /test cases | |
parent | e3c100a57b155721ccc53fe97b2a191125f85f25 (diff) | |
download | meson-f5f2ddde7e4a63ed9cc9eef0214f95c26c24c6da.zip meson-f5f2ddde7e4a63ed9cc9eef0214f95c26c24c6da.tar.gz meson-f5f2ddde7e4a63ed9cc9eef0214f95c26c24c6da.tar.bz2 |
Windows alignment fix.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/45 alignment/meson.build | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test cases/common/45 alignment/meson.build b/test cases/common/45 alignment/meson.build index 0cbc458..0dd8df5 100644 --- a/test cases/common/45 alignment/meson.build +++ b/test cases/common/45 alignment/meson.build @@ -11,8 +11,14 @@ endif ptr_size = cc.sizeof('void*') dbl_alignment = cc.alignment('double') -if ((ptr_size == 4) and (dbl_alignment == 4)) or ((ptr_size == 8) and (dbl_alignment == 8)) +if host.name() == 'windows' + dbl_exp = 8 +else + dbl_exp = ptr_size +endif + +if dbl_alignment == dbl_exp message('Alignment of double ok.') else - error('Alignment of double erroneous.') + error('Alignment of double misdetected.') endif |