From: David Griffith Date: Tue, 31 Jul 2018 07:26:56 +0000 (-0700) Subject: Change strrchr() to my_strrchr() to allow for use when there IS a strrchr(). X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=d8b3aedf9bb6ecab55ed2febbfacd7949a4dc883;p=liskon_frotz.git Change strrchr() to my_strrchr() to allow for use when there IS a strrchr(). --- diff --git a/src/curses/ux_frotz.h b/src/curses/ux_frotz.h index 1e87b3f..f26c171 100644 --- a/src/curses/ux_frotz.h +++ b/src/curses/ux_frotz.h @@ -96,7 +96,8 @@ void unix_get_terminal_size(void); /* ux_init.c */ #ifdef NO_STRRCHR -char *strrchr(const char *, int); +char *my_strrchr(const char *, int); +#define strrchr my_strrchr #endif #endif /* UX_FROTZ_H */ diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c index 0b59d38..5b0f958 100644 --- a/src/curses/ux_init.c +++ b/src/curses/ux_init.c @@ -1079,7 +1079,7 @@ void os_init_setup(void) * This is for operating systems that lack strrchr(3). * */ -char *strrchr(const char *s, int c) +char *my_strrchr(const char *s, int c) { const char *save;