* function will cause a link failure on non-Unix platforms,
* so it is preferrable to catch it early, during compile.
*/
+#if !defined(X11_BUILD) && !defined(__cplusplus)
#if defined(__GNUC__) && !defined(__CLANG__)
#if __GNUC__ >= 12
extern char *index(const char *s, int c) __attribute__ ((unavailable));
extern char *rindex(const char *s, int c) __attribute__ ((unavailable));
#endif
#endif
+#endif
#endif /* TRADSTDC_H */
#undef PRESERVE_NO_SYSV
#endif
+#define X11_BUILD
#include "config.h" /* #define for const for non __STDC__ compilers */
+#undef X11_BUILD
#include "lint.h" /* for nethack's nhStr() macro */
#include "winX.h" /* to make sure protoypes match corresponding functions */