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

This commit is contained in:
Michael Meskes 2012-02-18 15:56:39 +01:00
parent 5e7710e725
commit e3155c97b0

View File

@ -10,6 +10,10 @@
#include "extern.h"
#include "sqlca.h"
#ifdef WIN32
#define strtok_r(s,d,p) strtok_s(s,d,p)
#endif
#ifdef ENABLE_THREAD_SAFETY
static pthread_mutex_t connections_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_key_t actual_connection_key;