]> granicus.if.org Git - php/commitdiff
- vc6 does not expose it
authorPierre Joye <pajoye@php.net>
Wed, 3 Feb 2010 16:11:56 +0000 (16:11 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 3 Feb 2010 16:11:56 +0000 (16:11 +0000)
TSRM/tsrm_virtual_cwd.c

index 0d559d122bc5e5d154b77a35b364ef5ff5fcb4e7..bd30cfa8547f650be16f08238f1ca5eeb7870176 100644 (file)
@@ -1002,7 +1002,11 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
 
        if (path_length == 0 || path_length >= MAXPATHLEN-1) {
 #ifdef TSRM_WIN32
+# if _MSC_VER < 1300
+               errno = EINVAL;
+# else
                _set_errno(EINVAL);
+# endif
 #else
                errno = EINVAL;
 #endif