diff options
author | Lautis Sun <lautis0503@gmail.com> | 2016-07-04 17:40:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-04 17:40:02 +0300 |
commit | 58843e34ad6e3dd16282db63b490f472e4c84a3a (patch) | |
tree | c98c721ff83d82aeb0c2af0d02f07b5058910c9e | |
parent | 5938c232d9144e92531311b6f3c69c36fbb2c985 (diff) |
Fix _splitpath for old versions of VS
_splitpath_s is not available until VS 2005
-rw-r--r-- | tinydir.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -612,7 +612,7 @@ int tinydir_file_open(tinydir_file *file, const _tinydir_char_t *path) /* Get the parent path */ #if (defined _MSC_VER || defined __MINGW32__) -#ifdef _MSC_VER +#if ((defined _MSC_VER) && (_MSC_VER >= 1400)) _tsplitpath_s( path, drive_buf, sizeof drive_buf, |