From: Peter Eisentraut Date: Tue, 23 Jul 2024 07:13:48 +0000 (+0200) Subject: Windows replacement for strtok_r() X-Git-Tag: REL_18_BETA1~2350 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=4d130b28727ce5db4114bcc2a3e2c790643032de;p=postgresql.git 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 --- 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. *