]> granicus.if.org Git - libx264/commitdiff
mingw doesn't have strtok_r
authorLoren Merritt <pengvado@videolan.org>
Tue, 17 Jul 2007 11:24:26 +0000 (11:24 +0000)
committerLoren Merritt <pengvado@videolan.org>
Tue, 17 Jul 2007 11:24:26 +0000 (11:24 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@667 df754926-b1dd-0310-bc7b-ec298dee348c

common/osdep.h

index 7edfa5cb63da9a6294c0d34db698c2b718de0abe..74a570c3db224819cee3eb1ba7aaf378a9bccca8 100644 (file)
 #if defined(_MSC_VER) || defined(SYS_SunOS) || defined(SYS_MACOSX)
 #define sqrtf sqrt
 #endif
-#ifdef __WIN32__ // POSIX says that rename() removes the destination, but win32 doesn't.
-#define rename(src,dst) (unlink(dst), rename(src,dst))
+#ifdef __WIN32__
+#define rename(src,dst) (unlink(dst), rename(src,dst)) // POSIX says that rename() removes the destination, but win32 doesn't.
+#ifndef strtok_r
+#define strtok_r(str,delim,save) strtok(str,delim)
+#endif
 #endif
 
 #ifdef _MSC_VER