Skip to content

Commit 4d130b2

Browse files
committed
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
1 parent 8b2e9fd commit 4d130b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/include/port/win32_port.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,11 @@ extern int _pglstat64(const char *name, struct stat *buf);
415415
#undef ETIMEDOUT
416416
#define ETIMEDOUT WSAETIMEDOUT
417417

418+
/*
419+
* Supplement to <string.h>.
420+
*/
421+
#define strtok_r strtok_s
422+
418423
/*
419424
* Locale stuff.
420425
*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy