diff options
Diffstat (limited to 'sysdeps/powerpc/powerpc64/power8')
-rw-r--r-- | sysdeps/powerpc/powerpc64/power8/strchr.S | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sysdeps/powerpc/powerpc64/power8/strchr.S b/sysdeps/powerpc/powerpc64/power8/strchr.S index 5d6fa5d46e..e0c185c162 100644 --- a/sysdeps/powerpc/powerpc64/power8/strchr.S +++ b/sysdeps/powerpc/powerpc64/power8/strchr.S @@ -19,10 +19,19 @@ #include <sysdep.h> #ifdef USE_AS_STRCHRNUL -# define FUNC_NAME __strchrnul +# ifndef STRCHRNUL +# define FUNC_NAME __strchrnul +# else +# define FUNC_NAME STRCHRNUL +# endif #else -# define FUNC_NAME strchr -#endif +# ifndef STRCHR +# define FUNC_NAME strchr +# else +# define FUNC_NAME STRCHR +# endif +#endif /* !USE_AS_STRCHRNUL */ + /* int [r3] strchr (char *s [r3], int c [r4]) */ /* TODO: change these to the actual instructions when the minimum required binutils allows it. */ |