From 4d130b28727ce5db4114bcc2a3e2c790643032de Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 23 Jul 2024 09:13:48 +0200 Subject: [PATCH] Windows replacement for strtok_r() They spell it "strtok_s" there. There are currently no uses, but some will be added soon. Reviewed-by: Kyotaro Horiguchi Reviewed-by: David Steele Discussion: https://www.postgresql.org/message-id/flat/79692bf9-17d3-41e6-b9c9-fc8c3944222a@eisentraut.org --- src/include/port/win32_port.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/port/win32_port.h b/src/include/port/win32_port.h index 3d1de166cb0..7ffe5891c69 100644 --- a/src/include/port/win32_port.h +++ b/src/include/port/win32_port.h @@ -415,6 +415,11 @@ extern int _pglstat64(const char *name, struct stat *buf); #undef ETIMEDOUT #define ETIMEDOUT WSAETIMEDOUT +/* + * Supplement to . + */ +#define strtok_r strtok_s + /* * Locale stuff. * -- 2.30.2