Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cxong/tinydir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLautis Sun <lautis0503@gmail.com>2016-07-04 17:40:02 +0300
committerGitHub <noreply@github.com>2016-07-04 17:40:02 +0300
commit58843e34ad6e3dd16282db63b490f472e4c84a3a (patch)
treec98c721ff83d82aeb0c2af0d02f07b5058910c9e
parent5938c232d9144e92531311b6f3c69c36fbb2c985 (diff)
Fix _splitpath for old versions of VS
_splitpath_s is not available until VS 2005
-rw-r--r--tinydir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinydir.h b/tinydir.h
index 373d886..2baa672 100644
--- a/tinydir.h
+++ b/tinydir.h
@@ -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,