fix strtok_r test on MSW
This commit is contained in:
committed by
Dmitry Podgorny
parent
6e6093ee7b
commit
5b204b0938
@@ -20,6 +20,16 @@
|
|||||||
|
|
||||||
#include "test.h" /* ARRAY_SIZE */
|
#include "test.h" /* ARRAY_SIZE */
|
||||||
|
|
||||||
|
/* strtok_s() has appeared in visual studio 2005.
|
||||||
|
Use own implementation for older versions. */
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# if (_MSC_VER >= 1400)
|
||||||
|
# define strtok_r strtok_s
|
||||||
|
# else
|
||||||
|
# define strtok_r xmpp_strtok_r
|
||||||
|
# endif
|
||||||
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
static int test_strtok_r(void)
|
static int test_strtok_r(void)
|
||||||
{
|
{
|
||||||
const char *test = "-abc-=-def--";
|
const char *test = "-abc-=-def--";
|
||||||
|
|||||||
Reference in New Issue
Block a user