From 79d8f95f5720513b2fbf4c694b562b78ca2f32aa Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 1 Feb 2023 10:16:22 -0500 Subject: [PATCH] don't make the catch inline --- include/tradstdc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/tradstdc.h b/include/tradstdc.h index afbafe584..4232985b8 100644 --- a/include/tradstdc.h +++ b/include/tradstdc.h @@ -467,14 +467,14 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */ */ #if defined(__GNUC__) && !defined(__CLANG__) #if __GNUC__ >= 12 -inline char *index(const char *s, int c) __attribute__ ((unavailable)); -inline char *rindex(const char *s, int c) __attribute__ ((unavailable)); +extern char *index(const char *s, int c) __attribute__ ((unavailable)); +extern char *rindex(const char *s, int c) __attribute__ ((unavailable)); #endif #endif #if defined(__clang__) #if __clang_major__ >= 7 -inline char *index(const char *s, int c) __attribute__ ((unavailable)); -inline char *rindex(const char *s, int c) __attribute__ ((unavailable)); +extern char *index(const char *s, int c) __attribute__ ((unavailable)); +extern char *rindex(const char *s, int c) __attribute__ ((unavailable)); #endif #endif