From b7715ee018a8fb983f95798585c4d85c84adbb8c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 8 Dec 2014 08:28:22 -0600 Subject: [PATCH] Remove warning about redefined strtok_r --- tools/bdf-converter.c | 1 + tools/mkdeps.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/bdf-converter.c b/tools/bdf-converter.c index a93da0f2b1..e6976843c8 100644 --- a/tools/bdf-converter.c +++ b/tools/bdf-converter.c @@ -189,6 +189,7 @@ static char *MY_strtok_r(char *str, const char *delim, char **saveptr) return pbegin; } +#undef strtok_r #define strtok_r MY_strtok_r #endif diff --git a/tools/mkdeps.c b/tools/mkdeps.c index c0b71e707b..d6819ab25d 100644 --- a/tools/mkdeps.c +++ b/tools/mkdeps.c @@ -183,6 +183,7 @@ static char *MY_strtok_r(char *str, const char *delim, char **saveptr) return pbegin; } +#undef strtok_r #define strtok_r MY_strtok_r #endif