Skip to content

docs: Can't typedef bool in c23 - #11299

Closed
crrodriguez wants to merge 1 commit into
curl:masterfrom
crrodriguez:you_cant_touch_this
Closed

crrodriguez wants to merge 1 commit into
curl:masterfrom
crrodriguez:you_cant_touch_this

Conversation

@crrodriguez

Copy link
Copy Markdown
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.
/* curl stuff */
#include <curl/curl.h>

#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L

Copy link
Copy Markdown
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