diff options
Diffstat (limited to 'macros/texinfo/texinfo/tp/Texinfo/XS/gnulib/lib/rawmemchr.c')
-rw-r--r-- | macros/texinfo/texinfo/tp/Texinfo/XS/gnulib/lib/rawmemchr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/macros/texinfo/texinfo/tp/Texinfo/XS/gnulib/lib/rawmemchr.c b/macros/texinfo/texinfo/tp/Texinfo/XS/gnulib/lib/rawmemchr.c index 7df61512fc..f4d50304b5 100644 --- a/macros/texinfo/texinfo/tp/Texinfo/XS/gnulib/lib/rawmemchr.c +++ b/macros/texinfo/texinfo/tp/Texinfo/XS/gnulib/lib/rawmemchr.c @@ -1,5 +1,5 @@ /* Searching in a string. - Copyright (C) 2008-2019 Free Software Foundation, Inc. + Copyright (C) 2008-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,9 @@ /* Specification. */ #include <string.h> +/* A function definition is only needed if HAVE_RAWMEMCHR is not defined. */ +#if !HAVE_RAWMEMCHR + /* Find the first occurrence of C in S. */ void * rawmemchr (const void *s, int c_in) @@ -134,3 +137,5 @@ rawmemchr (const void *s, int c_in) char_ptr++; return (void *) char_ptr; } + +#endif |