summaryrefslogtreecommitdiffstats
path: root/librdfa/strtok_r.h
blob: 6fd31ee176bf55b45bb9627c6883fb5dd90f0a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* This file is in the public domain */

#ifndef HAVE_STRTOK_R
#  define NEED_RDFA_STRTOK_R
#endif

#if defined(WIN32) && defined(_MSC_VER) && _MSC_VER >= 1400
#  define strtok_r(s,d,p) strtok_s(s,d,p)
#  undef NEED_RDFA_STRTOK_R
#endif

#ifdef NEED_RDFA_STRTOK_R
char *rdfa_strtok_r(char *str, const char *delim, char **saveptr);
#  define strtok_r(s,d,p) rdfa_strtok_r(s,d,p)
#endif