summaryrefslogtreecommitdiff
path: root/ext/standard/link_win32.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-08-27 14:45:41 +0000
committerPierre Joye <pajoye@php.net>2009-08-27 14:45:41 +0000
commit5b39f5ca2469fbe24ace7d0138f45e33d283c588 (patch)
tree71eaacd85d95b7fb1de9380cd7d8ba25ff19c164 /ext/standard/link_win32.c
parent955a611211abe1a477bf7009fa0d64a0c4488785 (diff)
downloadphp-git-5b39f5ca2469fbe24ace7d0138f45e33d283c588.tar.gz
- fix VC6 build
Diffstat (limited to 'ext/standard/link_win32.c')
-rw-r--r--ext/standard/link_win32.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/standard/link_win32.c b/ext/standard/link_win32.c
index 0a837a5608..2a8ac804a2 100644
--- a/ext/standard/link_win32.c
+++ b/ext/standard/link_win32.c
@@ -55,6 +55,10 @@ TODO:
#define VOLUME_NAME_NT 0x2
#endif
+#ifndef VOLUME_NAME_DOS
+#define VOLUME_NAME_DOS 0x0
+#endif
+
/* {{{ proto string readlink(string filename)
Return the target of a symbolic link */
PHP_FUNCTION(readlink)
@@ -120,7 +124,7 @@ PHP_FUNCTION(readlink)
if(dwRet > 4) {
/* Skip first 4 characters if they are "\??\" */
- if(Path[0] == '\\' && Path[0] == '\\' && Path[1] == '?' && Path[2] == '?' && Path[3] == '\\') {
+ if(Path[0] == '\\' && Path[1] == '\\' && Path[2] == '?' && Path[3] == '\\') {
RETURN_STRING(Path + 4, 1);
}
} else {