Content-Length: 260156 | pFad | http://github.com/postgrespro/postgres/commit/e3155c97b0fa6d73aa9128cf0e56e8a776f5d355

FA Windows doesn't have strtok_r, so let's use strtok_s instead. · postgrespro/postgres@e3155c9 · GitHub
Skip to content

Commit e3155c9

Browse files
author
Michael Meskes
committed
Windows doesn't have strtok_r, so let's use strtok_s instead.
1 parent 5e7710e commit e3155c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/interfaces/ecpg/ecpglib/connect.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#include "extern.h"
1111
#include "sqlca.h"
1212

13+
#ifdef WIN32
14+
#define strtok_r(s,d,p) strtok_s(s,d,p)
15+
#endif
16+
1317
#ifdef ENABLE_THREAD_SAFETY
1418
static pthread_mutex_t connections_mutex = PTHREAD_MUTEX_INITIALIZER;
1519
static pthread_key_t actual_connection_key;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/e3155c97b0fa6d73aa9128cf0e56e8a776f5d355

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy