Commit e3155c97 authored by Michael Meskes's avatar Michael Meskes

Windows doesn't have strtok_r, so let's use strtok_s instead.

parent 5e7710e7
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
#include "extern.h" #include "extern.h"
#include "sqlca.h" #include "sqlca.h"
#ifdef WIN32
#define strtok_r(s,d,p) strtok_s(s,d,p)
#endif
#ifdef ENABLE_THREAD_SAFETY #ifdef ENABLE_THREAD_SAFETY
static pthread_mutex_t connections_mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t connections_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_key_t actual_connection_key; static pthread_key_t actual_connection_key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment