Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mz.h: fix build with gcc 4.8 #515

Merged
merged 1 commit into from
Jul 26, 2020
Merged

mz.h: fix build with gcc 4.8 #515

merged 1 commit into from
Jul 26, 2020

Conversation

ffontaine
Copy link
Contributor

@ffontaine ffontaine commented Jul 25, 2020

gcc 4.8 does not support __has_include directive as a result the build
will fail on:

/home/naourr/work/instance-1/output-1/build/minizip-2.10.0/mz.h:162:44: error: missing binary operator before token "("
    (defined(__has_include) && __has_include(<stdint.h>))
                                            ^

Fix it by appling:
https://gcc.gnu.org/onlinedocs/gcc-10.1.0/cpp/_005f_005fhas_005finclude.html

Fix #510

Signed-off-by: Fabrice Fontaine [email protected]

gcc 4.8 does not support __has_include directive as a result the build
will fail on:

/home/naourr/work/instance-1/output-1/build/minizip-2.10.0/mz.h:162:44: error: missing binary operator before token "("
    (defined(__has_include) && __has_include(<stdint.h>))
                                            ^

Fix it by appling:
https://gcc.gnu.org/onlinedocs/gcc-10.1.0/cpp/_005f_005fhas_005finclude.html

Fix #510

Signed-off-by: Fabrice Fontaine <[email protected]>
@nmoinvaz nmoinvaz changed the base branch from master to dev July 26, 2020 20:11
@nmoinvaz nmoinvaz merged commit 9400c1d into zlib-ng:dev Jul 26, 2020
@nmoinvaz
Copy link
Member

Merged to dev branch thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation Problem
2 participants