Skip to content

Fix build failure with GCC 15 #188

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ typedef signed long long s64;
typedef unsigned long size_t;
typedef signed long ssize_t;

/* bool, false and true are predefined since C23. */
#if __STDC_VERSION__ < 202311L
typedef unsigned char bool;
#define false 0U
#define true 1U
#endif

#endif /* TYPES_H_ */