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 sprintf issue on MacOS for non-XCode compilers #1510

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jul 11, 2024

  1. Add missing sprintf_s alternative to socket_ops.ipp

    Signed-off-by: Stephan Lachnit <[email protected]>
    stephanlachnit committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    9de615a View commit details
    Browse the repository at this point in the history
  2. config: use snprintf if __APPLE__ is detected

    __apple_build_version__ only works for XCode, but not e.g. for clang installed from brew.
    
    snprintf has been added in MacOS 10.0, which was released in March 2001.
    
    Signed-off-by: Stephan Lachnit <[email protected]>
    stephanlachnit committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    88154f8 View commit details
    Browse the repository at this point in the history