diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-10 01:42:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-10 01:42:42 +0000 |
commit | d26523e08964277881c3cdf34dafdc046cf3321d (patch) | |
tree | 5377c041a44ae9fc52ade9620e58f351a04a9b05 /src/common/compat.h | |
parent | eab048b7f35adc77f0316f72e981cab571233f81 (diff) | |
download | tor-d26523e08964277881c3cdf34dafdc046cf3321d.tar.gz tor-d26523e08964277881c3cdf34dafdc046cf3321d.zip |
Use tor_listdir in test.c instead of duplicating ode.
svn:r4981
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 30db44d8ce..686a9345b1 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -128,6 +128,12 @@ struct tm *tor_gmtime_r(const time_t *timep, struct tm *result); /* ===== File compatibility */ int replace_file(const char *from, const char *to); +#ifdef MS_WINDOWS +#define PATH_SEPARATOR "\\" +#else +#define PATH_SEPARATOR "/" +#endif + /* ===== Net compatibility */ #ifdef MS_WINDOWS /** On windows, you have to call close() on fds returned by open(), |