From 2aafd9d7e294721a5e850e7b6d7a52ae98527133 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Wed, 28 Jun 2023 12:35:14 +0800 Subject: [PATCH] util: Remove redundant defined(_WIN32) in u_string.h This defined(_WIN32) is nested in an "#ifdef _WIN32", so it's duplicated Signed-off-by: Yonggang Luo Reviewed-by: Erik Faye-Lund Acked-by: Jose Fonseca Part-of: --- src/util/u_string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/u_string.h b/src/util/u_string.h index 8fead06b627..da2bdbd8938 100644 --- a/src/util/u_string.h +++ b/src/util/u_string.h @@ -118,11 +118,11 @@ util_asprintf(char **str, const char *fmt, ...) #define strdup _strdup -#if defined(_WIN32) && !defined(HAVE_STRTOK_R) +#if !defined(HAVE_STRTOK_R) #define strtok_r strtok_s #endif -#endif +#endif /* _WIN32 */ #ifdef __cplusplus