From 2bfb966544a9aff299cf173b62443853078100e5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 6 May 2001 16:00:23 +0000 Subject: [PATCH] * string.h (cygwin_strchr): Make 'static inline' so that things will still work when optimized. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/string.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5920cef51..a303213f4 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Sun May 6 11:55:40 2001 Christopher Faylor + + * string.h (cygwin_strchr): Make 'static inline' so that things will + still work when optimized. + Sat May 5 01:04:11 2001 Christopher Faylor * exceptions.cc (handle_exceptions): Vastly increase test for exception diff --git a/winsup/cygwin/string.h b/winsup/cygwin/string.h index 93f0c9001..84dc14cb7 100644 --- a/winsup/cygwin/string.h +++ b/winsup/cygwin/string.h @@ -19,7 +19,7 @@ extern "C" { #undef strchr #define strchr cygwin_strchr -extern inline __stdcall char * +static inline __stdcall char * strchr (const char *s, int c) { register char * res;