comparison src/os/win32/ngx_files.h @ 4558:8865fd1f3aa5

Fixed unconditional MAX_PATH usage (ticket #22). POSIX doesn't require it to be defined, and Debian GNU/Hurd doesn't define it. Note that if there is no MAX_PATH defined we have to use realpath() with NULL argument and free() the result.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 27 Mar 2012 16:42:34 +0000
parents d620f497c50f
children 13eb3193cd63
comparison
equal deleted inserted replaced
4557:b13419459a50 4558:8865fd1f3aa5
181 #define ngx_realpath_n "" 181 #define ngx_realpath_n ""
182 #define ngx_getcwd(buf, size) GetCurrentDirectory(size, (char *) buf) 182 #define ngx_getcwd(buf, size) GetCurrentDirectory(size, (char *) buf)
183 #define ngx_getcwd_n "GetCurrentDirectory()" 183 #define ngx_getcwd_n "GetCurrentDirectory()"
184 #define ngx_path_separator(c) ((c) == '/' || (c) == '\\') 184 #define ngx_path_separator(c) ((c) == '/' || (c) == '\\')
185 185
186 #define NGX_HAVE_MAX_PATH 1
186 #define NGX_MAX_PATH MAX_PATH 187 #define NGX_MAX_PATH MAX_PATH
187 188
188 #define NGX_DIR_MASK (u_char *) "/*" 189 #define NGX_DIR_MASK (u_char *) "/*"
189 #define NGX_DIR_MASK_LEN 2 190 #define NGX_DIR_MASK_LEN 2
190 191