Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)