diff options
Diffstat (limited to 'src/lib/strtok_r.c')
-rw-r--r-- | src/lib/strtok_r.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/strtok_r.c b/src/lib/strtok_r.c index 320da746e..da49aaada 100644 --- a/src/lib/strtok_r.c +++ b/src/lib/strtok_r.c @@ -20,9 +20,11 @@ #include <stdio.h> #include <string.h> + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ +#ifndef HAVE_STRTOK_R char* strtok_r(char *str, const char *delim, char **saveptr) { if(str == NULL) { @@ -36,6 +38,7 @@ char* strtok_r(char *str, const char *delim, char **saveptr) { } } +#endif /* ifndef HAVE_STRTOK_R */ #ifdef __cplusplus }/* extern "C" */ #endif /* __cplusplus */ |