Skip to content
Commit a54619ba authored by Chen Qi's avatar Chen Qi Committed by Steve Sakoman
Browse files

zip: fix configure check by using _Static_assert



It's incorrect to run a cross-compiled program on build machine
to check if some feature is available or not. As these two checks
in zip are basically just checking the size, we can use _Static_assert
and sizeof to do such check at compile time.

Signed-off-by: default avatarChen Qi <Qi.Chen@windriver.com>
Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dda778d8)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 353b9c76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment