diff src/os/unix/ngx_files.h @ 2744:e50a2faac31d

ngx_path_separator()
author Igor Sysoev <igor@sysoev.ru>
date Thu, 23 Apr 2009 16:38:59 +0000
parents d8316f307b6a
children 77264e0157ad
line wrap: on
line diff
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -160,6 +160,8 @@ ngx_int_t ngx_set_file_time(u_char *name
 #define ngx_realpath_n           "realpath()"
 #define ngx_getcwd(buf, size)    (getcwd(buf, size) != NULL)
 #define ngx_getcwd_n             "getcwd()"
+#define ngx_path_separator(c)    ((c) == '/')
+
 #define NGX_MAX_PATH             PATH_MAX
 
 #define NGX_DIR_MASK_LEN         0