summaryrefslogtreecommitdiff
path: root/header_checks
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-10-04 14:21:13 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-10-05 13:40:29 +0200
commit124fbd3fa3464a4fe8cb436666f2cdc09d793162 (patch)
treeb15b6841b77642417dfc68144111b994e963775d /header_checks
parent01e6f80e579c4f8690d93bef2e6dcfce7f794938 (diff)
downloadefl-124fbd3fa3464a4fe8cb436666f2cdc09d793162.tar.gz
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 'header_checks')
-rw-r--r--header_checks/meson.build5
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
if config_h.has('HAVE_KEVENT')
config_h.set('HAVE_NOTIFY_KEVENT', '1')
-endif \ No newline at end of file
+endif
+
+config_h.set('SIZEOF_INT', cc.sizeof('int'))
+config_h.set('SIZEOF_LONG', cc.sizeof('long'))