diff --git a/include/compiler.h b/include/compiler.h index 53a9b5c1..d4cb7161 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -182,7 +182,7 @@ char * pure_func strrchrnul(const char *, int); #endif /* C++ and C23 have bool, false, and true as proper keywords */ -#if !defined(__cplusplus) || (__STDC_VERSION__ >= 202311L) +#if !defined(__cplusplus) && (__STDC_VERSION__ < 202311L) # ifdef HAVE_STDBOOL_H # include # elif defined(HAVE___BOOL)