diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-10-04 14:21:13 +0200 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-10-05 13:40:29 +0200 |
commit | 124fbd3fa3464a4fe8cb436666f2cdc09d793162 (patch) | |
tree | b15b6841b77642417dfc68144111b994e963775d /header_checks/meson.build | |
parent | 01e6f80e579c4f8690d93bef2e6dcfce7f794938 (diff) |
meson: add sizeof checks for meson
this fixes the building for systems where int and long does not have the
same size.
Differential Revision: https://phab.enlightenment.org/D7143
Diffstat (limited to '')
-rw-r--r-- | header_checks/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/header_checks/meson.build b/header_checks/meson.build index e54e17943c..01e557e95f 100644 --- a/header_checks/meson.build +++ b/header_checks/meson.build | |||
@@ -174,4 +174,7 @@ endif | |||
174 | 174 | ||
175 | if config_h.has('HAVE_KEVENT') | 175 | if config_h.has('HAVE_KEVENT') |
176 | config_h.set('HAVE_NOTIFY_KEVENT', '1') | 176 | config_h.set('HAVE_NOTIFY_KEVENT', '1') |
177 | endif \ No newline at end of file | 177 | endif |
178 | |||
179 | config_h.set('SIZEOF_INT', cc.sizeof('int')) | ||
180 | config_h.set('SIZEOF_LONG', cc.sizeof('long')) | ||