0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-11-08 23:27:15 -05:00

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) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel)
2025-10-12 13:05:55 -07:00
parent dfb3b0013e
commit 746e7c9efa

View File

@@ -182,7 +182,7 @@ char * pure_func strrchrnul(const char *, int);
#endif #endif
/* C++ and C23 have bool, false, and true as proper keywords */ /* 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 # ifdef HAVE_STDBOOL_H
# include <stdbool.h> # include <stdbool.h>
# elif defined(HAVE___BOOL) # elif defined(HAVE___BOOL)