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

Fix compilation errors with musl libc #463

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

Commits on May 22, 2024

  1. Fix compilation errors with musl libc

    1. `error.h` is a GNU extension and is not provided by musl. Replaced with fprintf.
    2. NULL is defined to `std::nullptr_t`, reinterpret_cast from `std::nullptr_t` to `void **` is not allowed. But static_cast is allowed.[1]
    
    [1] https://en.cppreference.com/w/cpp/language/reinterpret_cast#:~:text=Note%20that%20the%20null%20pointer,be%20used%20for%20this%20purpose.
    
    Signed-off-by: Sv. Lockal <[email protected]>
    AngryLoki committed May 22, 2024
    Configuration menu
    Copy the full SHA
    fd13e74 View commit details
    Browse the repository at this point in the history