diff options
author | Christopher Faylor <me@cgf.cx> | 2001-05-06 16:00:23 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-05-06 16:00:23 +0000 |
commit | 2bfb966544a9aff299cf173b62443853078100e5 (patch) | |
tree | 755dcded301cb52eb116d1171aec04c9224d47f9 /winsup/cygwin | |
parent | 11ba5ef4d16998de441aea84a9ea6644b8036703 (diff) | |
download | cygnal-2bfb966544a9aff299cf173b62443853078100e5.tar.gz cygnal-2bfb966544a9aff299cf173b62443853078100e5.tar.bz2 cygnal-2bfb966544a9aff299cf173b62443853078100e5.zip |
* string.h (cygwin_strchr): Make 'static inline' so that things will still work
when optimized.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/string.h | 2 |
2 files changed, 6 insertions, 1 deletions
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 <cgf@cygnus.com> + + * string.h (cygwin_strchr): Make 'static inline' so that things will + still work when optimized. + Sat May 5 01:04:11 2001 Christopher Faylor <cgf@cygnus.com> * 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; |