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

docs: Can't typedef bool in c23 #11299

Closed
wants to merge 1 commit into from

Conversation

crrodriguez
Copy link
Contributor

bool is a reserved keyword in c23.
Reserved keywords must not be redefined or UB ocurrs.

bool is a reserved keyword in c23, UB ahead.
@@ -36,7 +36,10 @@
/* curl stuff */
#include <curl/curl.h>

#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you perchance mean <= 201710L ? 201710L seems to be the value that identifies c18

bagder added a commit that referenced this pull request Jun 15, 2023
Apparently this cannot be done in c23

Reported-by: Cristian Rodríguez
Fixes #11299
@bagder bagder closed this in b5351c7 Jun 15, 2023
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
Apparently this cannot be done in c23

Reported-by: Cristian Rodríguez
Fixes curl#11299
Closes curl#11319
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
Apparently this cannot be done in c23

Reported-by: Cristian Rodríguez
Fixes curl#11299
Closes curl#11319
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants