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

Include assert.h in range_encoder.h #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Moisan
Copy link

@Moisan Moisan commented Feb 26, 2024

Building precomp on MacOS Sonoma leads to the following error

precomp-cpp-0.4.7/contrib/liblzma/rangecoder/range_encoder.h:153:2: error: call to undeclared function 'assert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        assert(rc->count <= RC_SYMBOLS_MAX);
        ^

This PR fixes the issue by adding #include <assert.h> in range_encoder.h.

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.

1 participant