Skip to content

missing #include for strcasecmp #4596

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

Closed
wants to merge 1 commit into from

Conversation

divinity76
Copy link
Contributor

@divinity76 divinity76 commented Dec 22, 2023

Posix specifications say you need strings.h to use strcasecmp

  • it happens to work on most Linux systems without it, but that's basically just a compiler include bug (i think?)
  • Cygwin gcc actually requires strings.h, compiling on Cygwin is how I noticed strings.h was missing

Posix specifications say you need strings.h to use strcasecmp

- it happens to work on most Linux systems without it, but that's basically just a compiler include bug (i think?)
- Cygwin gcc actually requires string.h, compiling on Cygwin is how I noticed strings.h was missing
@divinity76 divinity76 changed the title missing header for strcasecmp missing #include for strcasecmp Dec 22, 2023
@cebtenzzre
Copy link
Collaborator

The upstream project is actively maintained, it would probably be worth opening a PR there: https://github.com/yhirose/cpp-httplib

Since no supported platforms seem to require this, I don't think it's a priority to merge the change here first.

@divinity76
Copy link
Contributor Author

@cebtenzzre added a upstream PR yhirose/cpp-httplib#1744 and closing this.
maybe examples/server/ should be a git submodule rather than a copypasta?

@divinity76 divinity76 closed this Dec 22, 2023
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