aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-07-23 09:13:48 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-07-23 09:20:22 +0200
commit4d130b28727ce5db4114bcc2a3e2c790643032de (patch)
tree68992bfad5a1d577ca6b798edb08971c292d822a /src
parent8b2e9fd26afd9f379ea8bedeb4b11a354c09a3e1 (diff)
downloadpostgresql-4d130b28727ce5db4114bcc2a3e2c790643032de.tar.gz
postgresql-4d130b28727ce5db4114bcc2a3e2c790643032de.zip
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 <horikyota.ntt@gmail.com> Reviewed-by: David Steele <david@pgmasters.net> Discussion: https://www.postgresql.org/message-id/flat/79692bf9-17d3-41e6-b9c9-fc8c3944222a@eisentraut.org
Diffstat (limited to 'src')
-rw-r--r--src/include/port/win32_port.h5
1 files changed, 5 insertions, 0 deletions
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
@@ -416,6 +416,11 @@ extern int _pglstat64(const char *name, struct stat *buf);
#define ETIMEDOUT WSAETIMEDOUT
/*
+ * Supplement to <string.h>.
+ */
+#define strtok_r strtok_s
+
+/*
* Locale stuff.
*
* Extended locale functions with gratuitous underscore prefixes.