summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-05-11 10:17:36 +0200
committerMatt Turner <mattst88@gmail.com>2019-06-10 16:34:06 +0000
commitbe0d3e699401f8230fa88c28c52d73c57f13f327 (patch)
tree25b3e9de7d0d3001ee15634f8ddfd64206d98b0d
parent0ee0ad23de05bc3ea41720b5a260bc654a478e7d (diff)
downloadpixman-be0d3e699401f8230fa88c28c52d73c57f13f327.tar.gz
meson: define SIZEOF_LONG and use -Wundef
meson builds defaulted to SIZEOF_LONG=0 in various places
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1a11587..3a1a4c2 100644
--- a/meson.build
+++ b/meson.build
@@ -36,6 +36,7 @@ add_project_arguments(
'-Wdeclaration-after-statement',
'-fno-strict-aliasing',
'-fvisibility=hidden',
+ '-Wundef',
]),
language : ['c']
)
@@ -445,6 +446,8 @@ if host_machine.endian() == 'big'
config.set('WORDS_BIGENDIAN', 1)
endif
+config.set('SIZEOF_LONG', cc.sizeof('long'))
+
# Required to make pixman-private.h
config.set('PACKAGE', 'foo')