]> granicus.if.org Git - nethack/commitdiff
don't make the catch inline
authornhmall <nhmall@nethack.org>
Wed, 1 Feb 2023 15:16:22 +0000 (10:16 -0500)
committernhmall <nhmall@nethack.org>
Wed, 1 Feb 2023 15:16:22 +0000 (10:16 -0500)
include/tradstdc.h

index afbafe5844bc5ffe8e7796bfbee93f4242cd26f2..4232985b84797054478f0b6e1336905bb758bded 100644 (file)
@@ -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