From 170784c193f987ef74b32f8964e8a02405e3b580 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Fri, 21 Feb 2020 00:05:27 -0800 Subject: [PATCH] use strtok_s in place of strtok_r on Windows (#606) Signed-off-by: Ben Ashbaugh --- test_common/harness/compat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test_common/harness/compat.h b/test_common/harness/compat.h index b0be6ab7..3858a7ce 100644 --- a/test_common/harness/compat.h +++ b/test_common/harness/compat.h @@ -258,6 +258,16 @@ typedef long long int64_t; +// +// string.h +// + +#if defined(_MSC_VER) + #define strtok_r strtok_s +#endif + + + // // unistd.h //