src/platform_windows.cpp
changeset 80 b12ce95403a1
parent 59 88429085f8da
child 82 d0ad5655688a
     1.1 --- a/src/platform_windows.cpp	Thu Feb 26 16:17:19 2015 +0100
     1.2 +++ b/src/platform_windows.cpp	Sun Mar 01 01:07:35 2015 +0100
     1.3 @@ -10,6 +10,7 @@
     1.4  #define _CRT_RAND_S
     1.5  #include <stdlib.h>
     1.6  #include <assert.h>
     1.7 +#include <string.h>
     1.8  #include <string>
     1.9  #include <stdexcept>
    1.10  #include "platform_windows.h"
    1.11 @@ -202,5 +203,9 @@
    1.12      return (long) (r & ((1<<31)-1));
    1.13  }
    1.14  
    1.15 +#ifndef strtok_r
    1.16 +#define strtok_r(A, B, C) strtok_s((A), (B), (C))
    1.17 +#endif
    1.18 +
    1.19  } // "C"
    1.20