mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Use '\\' in Windows paths.
This commit is contained in:
parent
cb4210cf7c
commit
8cd4763fe1
1 changed files with 8 additions and 0 deletions
|
|
@ -34,7 +34,11 @@
|
|||
#define NMAP_VERSION "5.61TEST2"
|
||||
#define NMAP_DATADIR "/usr/local/share/nmap"
|
||||
|
||||
#ifdef WIN32
|
||||
#define PATHSEP "\\"
|
||||
#else
|
||||
#define PATHSEP "/"
|
||||
#endif
|
||||
|
||||
static const char *SVN_REPO = "https://svn.nmap.org";
|
||||
static const char *SVN_DIR = "/updates";
|
||||
|
|
@ -895,7 +899,11 @@ bail:
|
|||
|
||||
static int is_pathsep(int c)
|
||||
{
|
||||
#ifdef WIN32
|
||||
return c == '/' || c == '\\';
|
||||
#else
|
||||
return c == '/';
|
||||
#endif
|
||||
}
|
||||
|
||||
static char *parent_dir(const char *path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue