projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a231f5e
)
Fix libzip config checks.
v2.16.68
author
Carl Hetherington
<cth@carlh.net>
Fri, 24 Nov 2023 21:58:24 +0000
(22:58 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 24 Nov 2023 21:58:24 +0000
(22:58 +0100)
wscript
patch
|
blob
|
history
diff --git
a/wscript
b/wscript
index d6e2726b49ef2c9534c7ffd167bf9d7e913f32f3..8ff3a621784b52c574f32a87b344bcd18dcbebe6 100644
(file)
--- a/
wscript
+++ b/
wscript
@@
-249,7
+249,7
@@
def configure(conf):
conf.check_cfg(package='libzip', args='--cflags --libs', uselib_store='ZIP', mandatory=True)
conf.check_cxx(fragment="""
#include <zip.h>
conf.check_cfg(package='libzip', args='--cflags --libs', uselib_store='ZIP', mandatory=True)
conf.check_cxx(fragment="""
#include <zip.h>
- int main() { zip_source_t* foo; }
+ int main() { zip_source_t* foo;
(void)foo;
}
""",
mandatory=False,
msg="Checking for zip_source_t",
""",
mandatory=False,
msg="Checking for zip_source_t",
@@
-258,7
+258,7
@@
def configure(conf):
)
conf.check_cxx(fragment="""
#include <zip.h>
)
conf.check_cxx(fragment="""
#include <zip.h>
- int main() { struct zip* zip
; zip_source_t* source
; zip_file_add(zip, "foo", source, ZIP_FL_ENC_GUESS); }
+ int main() { struct zip* zip
= nullptr; zip_source_t* source = nullptr
; zip_file_add(zip, "foo", source, ZIP_FL_ENC_GUESS); }
""",
mandatory=False,
msg="Checking for zip_file_add",
""",
mandatory=False,
msg="Checking for zip_file_add",