From b45895c01d22560c4246c0a9968a730bdbd61393 Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 1 Feb 2023 14:15:34 -0500 Subject: [PATCH] correct a predefined preprocessor macro for clang --- include/tradstdc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tradstdc.h b/include/tradstdc.h index 5bbdd6dcb..13302c604 100644 --- a/include/tradstdc.h +++ b/include/tradstdc.h @@ -466,7 +466,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */ * so it is preferrable to catch it early, during compile. */ #if !defined(X11_BUILD) && !defined(__cplusplus) -#if defined(__GNUC__) && !defined(__CLANG__) +#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));