diff --git a/include/langinfo.h b/include/langinfo.h index 8c88efccfa29..46e38c724715 100644 --- a/include/langinfo.h +++ b/include/langinfo.h @@ -103,7 +103,7 @@ typedef __nl_item nl_item; #define YESEXPR 52 /* affirmative response expression */ #define NOEXPR 53 /* negative response expression */ -#if __BSD_VISIBLE || __XSI_VISIBLE <= 500 +#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE <= 500) #define YESSTR 54 /* affirmative response for yes/no queries */ #define NOSTR 55 /* negative response for yes/no queries */ #endif