Skip to content

Commit 746e7c9

Browse files
author
H. Peter Anvin (Intel)
committed
compiler.h: the test for "neither C++ nor C23" still wrong
The test needs to test for neither nor; as it was it tested "(not C++) or C23" which was not at all what was intended... Signed-off-by: H. Peter Anvin (Intel) <[email protected]>
1 parent dfb3b00 commit 746e7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ char * pure_func strrchrnul(const char *, int);
182182
#endif
183183

184184
/* C++ and C23 have bool, false, and true as proper keywords */
185-
#if !defined(__cplusplus) || (__STDC_VERSION__ >= 202311L)
185+
#if !defined(__cplusplus) && (__STDC_VERSION__ < 202311L)
186186
# ifdef HAVE_STDBOOL_H
187187
# include <stdbool.h>
188188
# elif defined(HAVE___BOOL)

0 commit comments

Comments
 (0)