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

Added strings.h include to resolve strncasecmp on some systems #393

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

empyreanx
Copy link
Contributor

@empyreanx empyreanx commented Aug 12, 2024

The header strings.h is the C standard compliant header for strncasecmp, however some implementations also declare it in string.h (which is why it complies on some distributions but not others). An include for strings.h has been added. The string,h include has been preserved in the event that there are some non-compliant implementations. We don't want to accidentally break things for some users, and there are minimal downsides to doing this.

@empyreanx
Copy link
Contributor Author

It looks like the upstream library is https://github.com/mattiasgustavsson/libs/blob/main/strpool.h . I'll send a PR to @mattiasgustavsson when I have a moment.

@RandyGaul RandyGaul merged commit b3fca23 into RandyGaul:master Aug 12, 2024
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.

2 participants